Closed petems closed 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.
require ::foo
require =>
I've added a failing test, I still need to figure out the regex to capture it properly:
Now fixed! :smile:
@50Wliu got this working with a bit of help from Stack Overflow :dancer:
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 doingrequire ::foo
notrequire =>
the metaparameter.I've added a failing test, I still need to figure out the regex to capture it properly:Now fixed! :smile: