On Oct 11, 2012, at 10:21 AM, Felix Schönbrodt <g...@nicebread.de> wrote:

> […] when I change the scope definition to the following (adding \\ in front 
> of "section"):
> 
> {   patterns = (
>     {   begin = '\\section\{';
>         end = '\}';
>         name = 'markup.heading.1.latex';
>     },
> );
> }
> 
> .. the scope is not applied.
> 
> Any ideas?

The problem is that \section{…} is already matched by the default grammar. So 
you would need to add your rule above the existing rule, to give it higher 
priority.

That said, the default marks the section line as ‘meta.function.section.latex’ 
so you can apply your font change to this scope, and it should work (no need to 
edit the grammar).

And sorry about the late reply…

_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to