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

Parsing error in case expression with comma separated regex #175

Closed PierreR closed 8 years ago

PierreR commented 8 years ago

puppetresources would fail parsing the following:

 case $destination   {
    '/^.*\/$/, /^.*\$/':  {

This would cause the wget (version 1.7.2) to fail here.

> puppetresources --parse ./modules/wget/manifest/fetch.pp                                                                                                                                                     
puppetresources: parse error:./modules/wget/manifests/fetch.pp:40:13:
unexpected ','
expecting ':'
bartavelle commented 8 years ago

Does that help ?

PierreR commented 8 years ago

Yes. It works nicely.

Thanks for the quick fix !