bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Add Regexp data type #248

Closed PierreR closed 5 years ago

PierreR commented 6 years ago

Parsing of a regex type is failing:

class application::test (
  Regexp $foo = /test/
) {
}

https://puppet.com/docs/puppet/5.3/lang_data_regexp.html#the-regexp-data-type

bartavelle commented 6 years ago

Does that patch even work ? :)

PierreR commented 6 years ago

It looks like I sitll get the message :

Regular expressions are not allowed in this context:  /test/
PierreR commented 5 years ago

I believe I fix this ;-)

bartavelle commented 5 years ago

yay!