I’m using Vim 7.3 on Ubuntu linux.
When I’m editing a YAML file
This:
fnordy fnord: fnord
fnords: super fnord
"fnords" would be colorized, but "fnordy fnords" would not be.


How can I fix this? I’m looking at my /usr/share/vim/vim73/syntax/yaml.vim file, but I don’t understand it enough to fix this.
UPDATE
:color
slate
:echo &ft
yaml
On fnord: fnordy (at the beginning of the line): yamlBlockMappingKey
On fnordy fnord: fnord (at the beginning of the line): yamlPlainScalar
As a result of steffen’s help, I compared both of the parsing commands.
The current script looks like this:
The problem, specifically, is the
s:ns_plain_out, which is a non-space patternSo I changed the pattern to simply match on any character:
Which fixes this particular issue.