[TxMt] Matching nested pairs

Gavin Kistner gavin at refinery.com
Sat Oct 8 20:30:38 UTC 2005


On Oct 8, 2005, at 12:08 AM, Michael Sheets wrote:
> {   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"; },
>         );
>     };
> };


Tricky! Is there more documentation on the repository and patterns/ 
include items?

I'll try to see if I can re-use that cleanly with the --[[ ... [[ ...  
[[ .. ]] .. ]] .. ]] multi-line block comment, also.

Thanks :)



More information about the textmate mailing list