On 6/28/06, Mojca Miklavec <[EMAIL PROTECTED]> wrote:
\startpublication
....
\author % highlited differently
...
\stoppublication
\author % highlited just as every other command.
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?
Your problem is that you're missing option 'contained' in
the first 'syn' command. This syn command line shall be:
syn match contextBibField '\\\(artauthor\|author\|editor\)\>'
display containedin=contextBib contained
This fixes your problem. You're missing the option 'contained'.
Yakov