atom / language-puppet

Puppet package for Atom
Other
36 stars 31 forks source link

Adds `require` as an `include` highlight #28

Closed petems closed 8 years ago

petems commented 8 years ago

See https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html#syntax-the-require-function

The only problem I have right now is figuring out making it only apply the highlight when doing require ::foo not require => the metaparameter.

I've added a failing test, I still need to figure out the regex to capture it properly:

screenshot 2016-03-11 12 53 23

Now fixed! :smile:

screenshot 2016-03-12 21 10 15
petems commented 8 years ago

@50Wliu got this working with a bit of help from Stack Overflow :dancer: