From 86304204b5da8b8287458281603a73044be9fd49 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Thu, 15 Sep 2022 14:40:18 -0500 Subject: [PATCH] De-emphasize end tag My preference is for the end tag to be less visible. This makes that happen. Half of the time, my XML files are actually XHTML, and I am closing blocks with... Highlighting these lines with differing colors is distracting, and it would be too difficult to find a way to pattern match these types of comments. Therefore my preference is to not highlight at all. --- syntax/xml.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/syntax/xml.vim b/syntax/xml.vim index 41a4b6c..9d4bbf9 100644 --- a/syntax/xml.vim +++ b/syntax/xml.vim @@ -199,9 +199,10 @@ else \ matchgroup=xmlTag end=+>+ \ contains=xmlError,xmlTagName,xmlAttrib,xmlEqual,xmlString,@xmlStartTagHook - syn match xmlEndTag - \ +"']\+>+ - \ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook + syn region xmlEndTag + \ matchgroup=xmlTag start=+"']\@=+ + \ matchgroup=xmlTag end=+>+ + \ contains=xmlTagName,xmlNamespace,xmlAttribPunct,@xmlTagHook endif @@ -310,7 +311,7 @@ syn sync minlines=100 hi def link xmlTodo Todo hi def link xmlTag Function hi def link xmlTagName Function -hi def link xmlEndTag Identifier +hi def link xmlEndTag Function if !exists("g:xml_namespace_transparent") hi def link xmlNamespace Tag endif -- 2.45.2