Skip to content

Commit 8fc9136

Browse files
authored
Merge pull request #20 from ralish/comment-fix
Match comments not immediately followed by a space
2 parents 0da1975 + 0e44fe1 commit 8fc9136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

after/syntax/yaml.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil
4040
syn keyword yamlConstant TRUE True true YES Yes yes ON On on
4141
syn keyword yamlConstant FALSE False false NO No no OFF Off off
4242

43-
syn match yamlKey "^\s*\zs[^ \t\"]\+\ze\s*:"
44-
syn match yamlKey "^\s*-\s*\zs[^ \t\"\']\+\ze\s*:"
43+
syn match yamlKey "^\s*\zs[^ \t\"\'#]\+\ze\s*:"
44+
syn match yamlKey "^\s*-\s*\zs[^ \t\"\'#]\+\ze\s*:"
4545
syn match yamlAnchor "&\S\+"
4646
syn match yamlAlias "*\S\+"
4747

0 commit comments

Comments
 (0)