Syntax coloring for YAML files breaks on some quotes
Describe the bug The syntax coloring for the YAML files messes up the colors in many situations...
To Reproduce Try this YAML text in gvim:
name: Get full list of services for {{ inp | join(', ') }}
register: newservices
changed_when: False
check_mode: ansible_check_mode
command: |-
xmllint -format -pretty 1 -xpath /Foo/Bar
Expected behavior Something similar to (or better than) how GitHub's syntax-coloring code renders it above.
Screenshots
Note, how the "text" begins on the second quote -- and never ends:

Environment (please complete the following information):
- Vim version 8.2.1110
- FreeBSD/11
- GUI
This syntax is maintained by Nikolai Pavlov, I don't know his github user name
This syntax is maintained by Nikolai Pavlov, I don't know his github user name
Can he -- his username -- not be tracked from commits to the relevant files, whatever they are?
@brammool wrote:
This syntax is maintained by Nikolai Pavlov, I don't know his github user name
I found it: https://github.com/ZyX-I But his last contribution in github is from Jul 2019.
@ZyX-I
This seems to happen when the quote, single or double, comes right after a non-whitespace character. Because then it is not detected as a string delimiter for some reason. The end quote does not seem to have that problem, when recognized as such. Because when the first quote is not recognized as one, then the end quote is seen as the beginning delimiter, which again has the same issue.
Maybe this gives someone an idea what the problem could be. I, looking at a vim syntax file the first time, could see anything wrong with the string definition at these lines https://github.com/vim/vim/blob/c54f347d63bcca97ead673d01ac6b59914bb04e5/runtime/syntax/yaml.vim#L113-L120
It could be a matter of multiple matches as described here https://github.com/vim/vim/blob/0d878b95d8f9ece2fdba81050f5caba224540f9c/runtime/doc/syntax.txt#L3714-L3729