[TxMt] LaTeX Bundle: Syntax highlighting in `\section` comand

Kevin Ballard kevin at sb.org
Mon Dec 11 01:48:32 UTC 2006


The solution to this is to edit the LaTeX syntax.

The part that defines how \section commands are treated interprets  
the contents as 'text.tex'. Changing that to 'text.tex.latex' allows  
it to colorize your \citeauthor properly. That said, I don't know if  
it causes any problems, so I'm not going to make the change right now.

cskiadas, do you have any input?

On Dec 10, 2006, at 8:09 PM, Aaron Jacobs wrote:

> I've found a problem with the syntax highlighting in the LaTeX bundle.
> I use the Cobalt theme, and normally the argument of a citation
> command such as `\citeauthor` appears in purple.  However, I have the
> following line in a document I am writing:
>
>    \section{\citeauthor{kager:1999}'s analysis}
>
> The arguments to section commands normally show up gold-colored for
> me, and "analysis" appropriately does so here.  However, the
> `kager:1999` part also does, which I believe is incorrect since it is
> not part of the actual section title but rather a bibliography keyword
> and thus should be purple.
>
> Not a huge problem, but I wanted to point it out.  I would fix it if I
> had time to learn TextMate's grammar system -- as I said, I'm
> currently writing a paper. :-)

-- 
Kevin Ballard
http://kevin.sb.org
kevin at sb.org
http://www.tildesoft.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061210/7a2c9650/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061210/7a2c9650/attachment.p7s>


More information about the textmate mailing list