From 14353ae8308824819a7ce3b309ce100338912957 Mon Sep 17 00:00:00 2001 From: MTDL9 <40929090+MTDL9@users.noreply.github.com> Date: Fri, 27 Jul 2018 04:52:26 +0200 Subject: [PATCH] Added # character in operator list --- syntax/log.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntax/log.vim b/syntax/log.vim index b9e387c..b6ab67a 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -13,7 +13,7 @@ set cpoptions&vim " Operators "--------------------------------------------------------------------------- -syn match logOperator display '[;,\?\:\.\<=\>\~\/\@\&\!$\%\&\+\-\|\^(){}\*]' +syn match logOperator display '[;,\?\:\.\<=\>\~\/\@\&\!$\%\&\+\-\|\^(){}\*#]' syn match logBrackets display '[\[\]]' syn match logEmptyLines display '-\{3,}' syn match logEmptyLines display '\*\{3,}' @@ -68,7 +68,6 @@ 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 logXmlAttribute contained "\w\+=" contains=logOperator syn match logXmlAttribute contained "\(\n\|\s\)\(\(\w\|-\)\+:\)\?\(\w\|-\)\+\(=\)\?" contains=logXmlNamespace,logOperator