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.