Hello,

I had some minor problems when trying to make some syntax highlighting
work properly.

In ConTeXt files (set syntax=context in vim 7.0) I would like to have
the following syntax highlited differently:

\startpublication
....
\author % highlited differently
...
\stoppublication

\author % highlited just as every other command.


I tried


syn match   contextBibField  '\\\(artauthor\|author\|editor\)\>'
display containedin=contextBib

syn region  contextBib transparent start='\\startpublication\>'
skip='%.*stoppublication' end='\\stoppublication\>' keepend
contains=TOP

hi def link contextBibField   Special


But now \author outside of \startpublication ... \stoppublication is
also highlited as Special, while it should remain the old hyghligting.

How can I fix that?

Thank you very much for any hints,
   Mojca Miklavec

Reply via email to