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!
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.
Thanks Luke ... I'll get the update and check it out. Much appreciated!
On Sat, Jan 31, 2009 at 4:19 PM, Luke Daley ld@ldaley.com wrote:
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.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
In short: it is a limitation of the parser.
There is an old, hard to find topic on that:
http://lists.macromates.com/textmate/2007-June/020363.html
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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- Florian Gilcher
smtp: flo@andersground.net jabber: Skade@jabber.ccc.de gpg: 533148E2