[TxMt] Matching nested pairs

Allan Odgaard throw-away-1 at macromates.com
Sat Oct 8 08:39:26 UTC 2005


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.




More information about the textmate mailing list