Do not propose completions when inside or at the end of a comment
Improve single-line match "end" pattern

This takes several of YAML's rules into account when using string literals (and
improve handling of quoted strings).