From 09a272bb66a7eb323b87d9201c82da93043fe478 Mon Sep 17 00:00:00 2001 From: MTDL9 <40929090+MTDL9@users.noreply.github.com> Date: Sat, 2 Feb 2019 12:07:06 +0100 Subject: [PATCH] Fix single quoted strings not working in XML Attributes Resolves issue #2 --- syntax/log.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/log.vim b/syntax/log.vim index b6ab67a..06ca3ea 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -68,7 +68,7 @@ syn match logFilePath '\/\w[^\n|,; ()'"\]{}]\+' " Simplified matches, not accurate with the spec to avoid false positives syn match logXmlHeader // contains=logString,logXmlAttribute,logXmlNamespace syn match logXmlDoctype /]*>/ contains=logString,logXmlAttribute,logXmlNamespace -syn match logXmlTag /<\/\?\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(\(\n\|\s\)\+\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(="[^"]*"\|="[^"]*"\)\?\)*\s*\/\?>/ contains=logString,logXmlAttribute,logXmlNamespace +syn match logXmlTag /<\/\?\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(\(\n\|\s\)\+\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(="[^"]*"\|='[^']*'\)\?\)*\s*\/\?>/ contains=logString,logXmlAttribute,logXmlNamespace syn match logXmlAttribute contained "\w\+=" contains=logOperator syn match logXmlAttribute contained "\(\n\|\s\)\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(=\)\?" contains=logXmlNamespace,logOperator syn match logXmlNamespace contained "\(\w\|-\)\+:" contains=logOperator