[txmt-dev] Re: Working with indentation rules

Tim Bates timothy.c.bates at gmail.com
Tue Sep 17 16:09:22 UTC 2013


On 17 Sep 2013, at 10:17, "Allan Odgaard" <mailinglist at textmate.org> wrote:
> This is basically what I wish to inject into all scopes, sans the D suffix:
> 
>    {   match = '(\{)(\})';
>        captures = {
>            1 = { name = 'punctuation.section.block.begin.d'; };
>            2 = { name = 'punctuation.section.block.end.d'; };
>        };
>    },
> 
> If the grammar alredy match (stand-alone) braces, it doesn’t need the rule, instead it can assign the above begin/end scopes to these matches.

Go ahead :-)



More information about the textmate-dev mailing list