pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
796 stars 98 forks source link

YAML scalar after `when:` should always be jinja2 implicitly #60

Closed towolf closed 6 years ago

towolf commented 6 years ago

Is it possible to always highlight the value of a when: key as jinja?

... the when clause, which contains a raw Jinja2 expression without double curly braces — http://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html

pearofducks commented 6 years ago

Feel free to fork and add this yourself, I don't see this as a worthwhile feature to add.

It should be possible since the key can be detected.