summaryrefslogtreecommitdiffstats
path: root/after/syntax/yaml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/yaml.vim')
-rw-r--r--after/syntax/yaml.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim
index 4dd2c4e9..097d1535 100644
--- a/after/syntax/yaml.vim
+++ b/after/syntax/yaml.vim
@@ -42,8 +42,8 @@ syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil
syn keyword yamlConstant TRUE True true YES Yes yes ON On on
syn keyword yamlConstant FALSE False false NO No no OFF Off off
-syn match yamlKey "^\s*\zs[^ \t\"]\+\ze\s*:"
-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*:"
syn match yamlAnchor "&\S\+"
syn match yamlAlias "*\S\+"