We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0da1975 + 0e44fe1 commit 8fc9136Copy full SHA for 8fc9136
after/syntax/yaml.vim
@@ -40,8 +40,8 @@ syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil
40
syn keyword yamlConstant TRUE True true YES Yes yes ON On on
41
syn keyword yamlConstant FALSE False false NO No no OFF Off off
42
43
-syn match yamlKey "^\s*\zs[^ \t\"]\+\ze\s*:"
44
-syn match yamlKey "^\s*-\s*\zs[^ \t\"\']\+\ze\s*:"
+syn match yamlKey "^\s*\zs[^ \t\"\'#]\+\ze\s*:"
+ syn match yamlKey "^\s*-\s*\zs[^ \t\"\'#]\+\ze\s*:"
45
syn match yamlAnchor "&\S\+"
46
syn match yamlAlias "*\S\+"
47
0 commit comments