Hi,
I'm using the latest version of TM with all the updates applied on Tiger 10.4 with all the latest updates.
This is a really minor thing but it would be nice to have fixed. I suspect it's just a regex tweak that's needed.
If I write a method declaration in an interface:
public interface MyInterface {
public void somethingSpecial(Object foo, Object bar) throws SomeException, AnotherException;
public String getName();
}
Then it breaks the highlighting.
If I put it all on the one line then it works fine.
Cheers,
Chris
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
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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 20/09/2007, at 01:30, Mark Day wrote:
[...] 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.
Actually, I said “not even for 2.0”: http://lists.macromates.com/pipermail/textmate/2007-June/020383.html
There is some stuff in 2.0 related to multi-line constructs, but I think it is really only useful for Markdown.
Long-term; probably, but 2.0; most definitely not.