I built the following highlight definitions (thanks to an answer in this question):
" #a6e22e
syntax match tagFunctionDefinition "\v\<"
syntax match tagFunctionDefinition "\v\>"
syntax match tagFunctionDefinition "\v/"
hi def link tagFunctionDefinition Function
" #f6266e
syntax match tagOperator "\v\<\/?\zs\w+\ze\/?>"
hi def link tagOperator Operator
The first is to highlight the <
>
and /
in a file. The second to hightlight characters between <
>
s.
For some reason the first hightlight definition is neutralizing the second (the second works if I comment out the first).
What could be the cause?
(I tried swapping their positions, but does nothing.)