subrama6 wrote:
that works well - i couldn't quite figure out what the 'contains' and
'contained' keywords were for just from the help files, so thanks much :)
thanks also for the tip about the naming convention - i've amended my syntax
file accordingly.
[...]
Well, picture these syntax items as just that: a container and something
contained in it. So we see
@tagname
<------> mysyntaxTag
^------- (one character) mysyntaxTagIdent, inside the bigger one
Vim highlights the whole in mysyntaxTag color, then overlays the @ in
mysyntaxTagIdent color (only for @ within mysyntaxTag items because of the
contains/contained clauses, and the syntax for mysyntaxTag requires @ as the
first character and nowhere else). So you see the @ in one color and the rest
in another color.
Best regards,
Tony.
--
Laissez Faire Economics is the theory that if each acts like a vulture,
all will end as doves.