[SVN] Questions while updating LaTeX.plist

Allan Odgaard allan at macromates.com
Fri Apr 22 01:13:31 UTC 2005


On Apr 22, 2005, at 0:56, Brad Miller wrote:

> So I started another pass through the LaTeX.plist file to get a better 
> color scheme working in b6.
>
> Whats the best way to translate this into the new syle:
>         {
>             begin = "\\\\textbf\\{";
>             elementFontStyle = (plain);
>             elementForegroundColor = "#9700cc";
>             end = "\\}";
>             fontStyle = (bold);
>             foregroundColor = "#000000";
>             name = "keywords.functions.latex.textbf";
>         },
>
> Is doing  a regular expression with multiple captures the right way to 
> handle this or is there an easier/more preferred way?

If you change it to this:
    {  begin = "(\\\\textbf)\\{"; end = "\\}";
       captures = {
          1 = { name = "keywords.functions.latex.textbf"; };
       };
    },

Then only the \textbf part should by styled like a function.




More information about the textmate-dev mailing list