correcting ??? problems in parantheses
authorVolker Birk <vb@pep.foundation>
Sun, 21 Aug 2016 08:50:09 +0200
changeset 2 4b65c6f36f21
parent 1 23daf9d318ac
child 3 cf460d7c4417
correcting ??? problems in parantheses
vim/syntax/yml2.vim
--- a/vim/syntax/yml2.vim	Mon Jul 11 23:35:43 2016 +0200
+++ b/vim/syntax/yml2.vim	Sun Aug 21 08:50:09 2016 +0200
@@ -22,7 +22,7 @@
 syn match	cBadContinuation contained "\\\s\+$"
 
 " cCommentGroup allows adding matches for special things in comments
-syn cluster	cCommentGroup	contains=cTodo,cBadContinuation,ymlString
+syn cluster	cCommentGroup	contains=cTodo,cBadContinuation,ymlStringComment
 
 " String and Character constants
 " Highlight special characters (those which have a backslash) differently
@@ -30,7 +30,8 @@
 if !exists("c_no_utf")
   syn match	cSpecial	display contained "\\\(u\x\{4}\|U\x\{8}\)"
 endif
-syn region	ymlString		start=+L\=«+ skip=+\\\\\|\\"+ end=+»+ contains=cSpecial,@Spell
+syn region	ymlString		start=+L\=«+ end=+»+ contains=cSpecial,@Spell
+syn region	ymlStringComment		start=+L\=«+ end=+»+ contains=cSpecial,@Spell
 if exists("c_no_cformat")
   syn region	cString		start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell,ymlString
   " cCppString: same as cString, but ends at end of line
@@ -370,6 +371,7 @@
 hi def link cCppOut2		cCppOut
 hi def link cCppOut		Comment
 hi def link ymlString   Operator
+hi def link ymlStringComment   Operator
 let b:current_syntax = "yml2"
 
 " vim: ts=8