I was trying to do a new scope for being inside of a certain command parentheses eg. trace( 'here is the new scope' ), so that I could do some special tab triggers inside that scope, but I wasn't able to do it. I tried all kinds of combinations for begin and end in the language grammar with no luck. Apparently I somehow mess up the regular expression.
Can any of you help out ?
Surely:
{ name = 'my.new.scope'; begin = "trace('"; end = "')"; }
and then attach a tab trigger to scope my.new.scope .
I'm a bit new to this, but that seems to work for me. How do you find it, jami?
t.
On 18/07/06, Jami Haavisto jami@game-lion.com wrote:
I was trying to do a new scope for being inside of a certain command parentheses eg. trace( 'here is the new scope' ), so that I could do some special tab triggers inside that scope, but I wasn't able to do it. I tried all kinds of combinations for begin and end in the language grammar with no luck. Apparently I somehow mess up the regular expression.
Can any of you help out ?
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
Of course, yes - I was just including a small fragment that you should include within a larger context.
On 18/07/06, Domenico Carbotta domenico.carbotta@fastwebnet.it wrote:
{ name = 'my.new.scope'; begin = "trace('"; end = "')"; }
note that it should be before any other rule could catch pieces of it: when I do something like that, I create a new language where I first define my additions then include the base grammar.
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