snipmate: don't highlight lines starting with space as error (#579).

This commit is contained in:
L3MON4D3 2022-09-05 08:11:12 +02:00
parent a45cd5f4d9
commit 5832c5e3ee

View file

@ -13,7 +13,9 @@ syn match snippet '^priority.*' contains=snipKeyword,priority
syn match priority '\d\+' contained
syn match multiSnipText '\S\+ \zs.*' contained
syn match snipKeyword '^(snippet|extends|version|autosnippet|priority)'me=s+8 contained
syn match snipError "^[^#vsaep\t].*$"
" normally we'd want a \s in that group, but that doesn't work => cover common
" cases with \t and " ".
syn match snipError "^[^#vsaep\t ].*$"
hi link snippet Identifier
hi link snipComment Comment