Skip to content

Commit 0e44fe1

Browse files
ralishcbandy
andauthored
Ensure strings with colons are matched as strings
With thanks to @cbandy. Co-Authored-By: Chris Bandy <[email protected]>
1 parent b712d42 commit 0e44fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

after/syntax/yaml.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ 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*:"
43+
syn match yamlKey "^\s*\zs[^ \t\"\'#]\+\ze\s*:"
4444
syn match yamlKey "^\s*-\s*\zs[^ \t\"\'#]\+\ze\s*:"
4545
syn match yamlAnchor "&\S\+"
4646
syn match yamlAlias "*\S\+"

0 commit comments

Comments
 (0)