@@ 126,11 126,16 @@ endif
" ^^^
"
syn match xmlTagName
- \ +\%(<\|</\)\@2<=[^ /!?<>"']\++
+ \ +<\@1<=[^ /!?<>"']\++
\ contained
\ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook
\ display
+syn match xmlEndTagName
+ \ +\%(</\)\@2<=[^ /!?<>"']\++
+ \ contained
+ \ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook
+ \ display
if exists('g:xml_syntax_folding')
@@ 165,7 170,7 @@ if exists('g:xml_syntax_folding')
\ matchgroup=xmlTag start=+</[^ /!?<>"']\@=+
\ matchgroup=xmlTag end=+>+
\ contained
- \ contains=xmlTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook
+ \ contains=xmlEndTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook
" tag elements with syntax-folding.
" NOTE: NO HIGHLIGHTING -- highlighting is done by contained elements
@@ 205,7 210,7 @@ else
syn region xmlEndTag
\ matchgroup=xmlTag start=+</[^ /!?<>"']\@=+
\ matchgroup=xmlTag end=+>+
- \ contains=xmlTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook
+ \ contains=xmlEndTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook
endif
@@ 314,7 319,8 @@ syn sync minlines=100
hi def link xmlTodo Todo
hi def link xmlTag Function
hi def link xmlTagName Function
-hi def link xmlEndTag Function
+hi def link xmlEndTagName Comment
+hi def link xmlEndTag Identifier
if !exists("g:xml_namespace_transparent")
hi def link xmlNamespace Tag
endif