[TxMt] Matching nested pairs
Allan Odgaard
throw-away-1 at macromates.com
Sat Oct 8 08:45:21 UTC 2005
On 08/10/2005, at 10.39, Allan Odgaard wrote:
> On 08/10/2005, at 6.54, Gavin Kistner wrote:
>> begin = '(?<!--)\[\[';
> If the negative look-behind on “--” is to avoid “[[” in a comment,
> then just make a rule to match “--.*$” (or similar) and you won't
> need to resort to look-behind etc.
That's be begin = "--\[\[" for a multi-line comment with the same
nesting as Michael Sheet showed (I seem to recall that multi-line
comments can have some sort of nesting!?!)
More information about the textmate
mailing list