[TxMt] Java language grammar problems
Steve Lianoglou
lists at arachnedesign.net
Wed Mar 29 16:34:53 UTC 2006
> I had this issue too -- here is Allan's reply (it was off-list)
<snip>
>>> This is an issue for me because I use a macro to insert a newline
>>> and '*' bound to the return key. When I move outside the comment
>>> and press return that macro is run because TM thinks it is inside
>>> the comment.block scope.
Hah .. that's exactly how I found that one, too :-)
>> The only solution is to modify the language grammar to markup
>> things differently. For example you could assign a name to the
>> last slash (see about language grammars / captures ) and then give
>> a scope selector like: comment.block - meta.end-of-comment.
Would it make sense to make that part of the official lang bundle?
I'd imagine manay-a-folk would find macro of continuing a block
comment w/ a leading "*" when writing up docs.
Thanks for the heads up on that one.
-steve
More information about the textmate
mailing list