[SVN] Bugs in Java syntax highlighting

Allan Odgaard throw-away-1 at macromates.com
Mon Oct 2 21:09:30 UTC 2006


On 2/10/2006, at 22:50, Trevor Harmon wrote:

> There are two bugs in the syntax highlighting for the Java bundle.  
> One is here:
>
> http://macromates.com/ticket/show?ticket_id=89E5F691

I added support for that recently. Are you testing with the latest  
version of the Java bundle?

> The other can be seen if you type something like this:
>
> MYCLASS.callMyStaticMethod();
> MyClass.callMyStaticMethod();
>
> In the above two lines, the first one is highlighted as a constant,  
> even though it's a class name. The second is highlighted correctly.  
> Unfortunately, I suppose this will be very difficult to fix because  
> MYCLASS could legally be either a class or a constant, depending on  
> how it's defined.

Yeah, you would have to cut support for coloring constants based on  
naming conventions or something like that -- I am not using Java  
myself, so I won’t make a choice as to how to resolve this.

Brian?




More information about the textmate-dev mailing list