[TxMt] Re: java (and probably other) highlighting

Florian Gilcher flo at andersground.net
Mon Feb 2 09:21:58 UTC 2009

In short: it is a limitation of the parser.

There is an old, hard to find topic on that:


Basically the problem is that the parser only sees the document line- 
by-line. See the thread for some in-deep explanations on why it  
behaves like this.

Nevertheless, have a lot of fun hacking!
Florian Gilcher

On Jan 31, 2009, at 8:35 PM, Robert J. Carr wrote:

> I'm a brand new user (and licensee) of TextMate and I am mostly very
> happy (and eager for the next release) but I am noticing a slight
> syntax highlighting problem.
> I tend to write code like this (when argument lists get too long):
> Widget w = new Wiget(
>  x,
>  y,
>  z
> )
> And that seems to break the highlighting.  So sure, you might say,
> "you write code weird, get over it", but in writing an enum, in what I
> think is a "normal way", it also breaks it, e.g.:
> private enum ImageInfo {
> 	WIDTH("100px"),
> 	HEIGHT("100px");
> }
> So I'm wondering if I can update the syntax file to account for this,
> and if so, how?
> Thanks!
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

Florian Gilcher

smtp:   flo at andersground.net
jabber: Skade at jabber.ccc.de
gpg:    533148E2

More information about the textmate mailing list