rodjek / vim-puppet

Puppet niceties for your Vim setup
Apache License 2.0
501 stars 137 forks source link

double quoted array variable wrong highlight #68

Closed Poil closed 7 years ago

Poil commented 7 years ago

This is allowed https://docs.puppet.com/puppet/4.9/style_guide.html

"linux-headers-${facts['kernelrelease']}"

A possible fix is to replace

syn match   puppetVariable      "${[a-zA-Z0-9_:]\+}" contains=@NoSpell

With

syn match   puppetVariable      "${[a-zA-Z0-9_:'\[\]]\+}" contains=@NoSpell