[TxMt] Matching nested pairs

Michael Sheets mummer at whitefalls.org
Sat Oct 8 06:08:45 UTC 2005


On Oct 7, 2005, at 11:54 PM, Gavin Kistner wrote:

>         {    name = 'string.quoted.multiline.lua';
>             begin = '(?<!--)\[\[';
>             end = '\]\]';
>             swallow = '\[\[(.|\r)*?\]\]|\\.';
>         },

{   name = 'string.quoted.multiline.lua';
     begin = '(?<!--)\[\[';
     end = '\]\]';
     patterns = (
         { include = "#nested-string-multiline"; },
     );
},
repository = {
     "nested-string-multiline" = {
         name = "string.quoted.multiline.lua";
         begin = '(?<!--)\[\[';
         end = '\]\]';
         patterns = (
             { include = "#nested-string-multiline"; },
         );
     };
};

Of course you could just make that into one repository item and make  
it even simpler...



More information about the textmate mailing list