Hi,

I want to add some extra syntax highlighting to my latex documents. I
am writing a thesis, so I have separate files for each chapter.

For example, I add this in ~/vimfiles/extra/syntax/tex.vim

syn region texFootnote  matchgroup=texStatement start="\\footnote{"   end="}"
hi link texFootnote Special

Now in my latex file let's say I have this:

\chapter{Introduction}
bla bla bla \footnote{see here for more bla}

The highlighting does not work. But if I comment out the \chapter
command then it does. So the syntax highlighting of \chapter is
affecting whether or not my additional syntax works.

I am sure there is something simple that I need to do to make this
work, but the intricacies of the syntax highlighting system elude me.
Can anyone tell me what the right move is here?

Thanks
Brett

--
Brett Calcott
Philosophy Program
Research School of Social Sciences
Australian National University
http://www.ruminant-marsupial.net

Reply via email to