[SVN] Can't get begin-end pattern to work

Allan Odgaard allan at macromates.com
Mon Jun 6 06:40:04 UTC 2005


On Jun 6, 2005, at 2:35, Charilaos Skiadas wrote:

> and I can't figure out what I've done wrong. I am using the following:
>         {   name = "declaration.environment.latex";
>             begin = "(\\\\begin\\{)(.*?)(\\})";
>             end = "(\\\\end\\{)(.*?)(\\})";

Your end pattern has an invisible character in front of “.*?”.

>                 4 = { name = "keyword.function.environment.latex"; };
>                 5 = { name =  
> "entity.parameter.function.variable.environment.latex"; };
>                 6 = { name = "keyword.function.environment.latex"; };

Both begin and end patterns enumerate captures starting from 1. So  
these are unnecessary (if you need different naming of end captures,  
you can use endCaptures).





More information about the textmate-dev mailing list