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@sb.org
http://www.tildesoft.com