[TxMt] Java language grammar problems

Steve Lianoglou lists at arachnedesign.net
Wed Mar 29 07:02:01 UTC 2006


Hey folks,

To the maintainer of the Java language bundle, I just pulled the  
latest from svn. I didn't realize if the Java.tmbundle was update,  
but there are (IMHO) some bugs in the language grammar that I'm  
running accross that I don't think I've seen before but it's possible  
I just wasn't looking:

FIRST:
When the cursor is immediately outside of a block comment, the scope  
still shows "comment.documentation.java" or "comment.block.java" when  
I don't think it should be (imagine the ^ character to be the cursor):

Example:
/* some comment here */^
-- or --
/**
  * My method does this
  */^
the scope on the outside of the closed comment is being recognized as  
comment.block.java and comment.documentation.java respectively when  
really I'm out of the comment blocks.

SECOND:
All the code after an abstract method is scoped to  
meta.definition.method.java, like for Example:

	public abstract void doSomething();
	// all code in the file below this is scoped to the  
meta.definition.method.java

if I add a {} at the end of the abstract method signature the scope  
gets fixed -- but, y'know ... then the compiler complains :-)

Thanks,
-steve



More information about the textmate mailing list