pearofducks / ansible-vim

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

Variables in comments are still highlighted #47

Closed redlegoman closed 6 years ago

redlegoman commented 6 years ago

Not sure if it is my environment or not, but when I use ansible-vim and put a comment # at the beginning of a line containing a variable, the variable is still highlighted. So in

#- debug: msg="password for {{item.name}}"

screenshot - 10_11_2017 11_40_19

the {{item name}} part of the line isn't the same colour as the rest of the line, which is in my case DarkBlue.

pearofducks commented 6 years ago

I can reproduce this, but it's a pretty rare corner-case - and doesn't break any other highlighting. I'm welcome to PRs that fix the issue, but won't spend time fixing it. :)

Thanks for reporting though!