[TxMt] Java highlighting breaks when a declaration spreads multiple lines

Chris Corbyn chris at w3style.co.uk
Thu Sep 20 05:50:55 UTC 2007

Ah ok thanks.  It's not really a big issue for me :)  I've been using  
TM for nearly a year and I still think it's by far the best editor  
available between windows, linux and mac.

On 20 Sep 2007, at 00:30, Mark Day wrote:

> On Sep 14, 2007, at 6:17 AM, Chris Corbyn wrote:
>> If I write a method declaration in an interface:
> <snipped declaration that spans multiple lines>
>> Then it breaks the highlighting.
>> If I put it all on the one line then it works fine.
> This is a known issue.  And it's not just Java.  For performance  
> reasons, TextMate examines only one line of the file at a time when  
> matching against the grammar's regular expressions.  No one line of  
> your declaration is a match for the regular expression.
> While you could modify the grammar to accept an incomplete  
> declaration, it would probably result in lots of false positive  
> matches.
> Allan has mentioned he wants to address this in version 2.
> -Mark
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

More information about the textmate mailing list