Closed savchenko closed 4 years ago
I'm almost positive this isn't fixable. The YAML syntax simply doesn't convey the structure information necessary to prevent this. The syntax know's it's in a YAML key, but because of how Ansible and YAML work, that name
key could be at any level of nesting and we can't reliably pick this up to prevent it.
This is also enough of a corner-case in highlighting I don't think it's worth the excess code trying to work around.
That being said, if someone comes up with a very elegant solution to this, I'm happy to accept a PR.
Consider the following:
And here is the highlight:
I would imagine that second "name" should have the same highlight group as the "shell" and "groups".