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

Luke Daley ld at ldaley.com
Sun Feb 1 00:19:18 UTC 2009


On 01/02/2009, at 5:35 AM, 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
> )

There isn't a problem with this for me. Are you using the latest Java  
bundle?

http://manual.macromates.com/en/bundles#getting_more_bundles

> 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");
> }

This is a different case. The grammar didn't support enums at all, but  
it does now.

If you get the latest Java bundle this should all work for you.

-- 

LD.




More information about the textmate mailing list