llowder / puppet-nano

Syntax highlighting for puppet files in nano
10 stars 14 forks source link

Syntax error using nano on MacOSX #2

Open adrien-mogenet opened 11 years ago

adrien-mogenet commented 11 years ago

I just let you know that under MacOSX, this config file leads in error messages:

Error in /Users/adrien/Development/Config/config/nano/nano.d/puppet/puppet.nanorc on line 7: Bad regex "^[[:space::]]([a-z][a-z0-9_]+)": invalid character class

Error in /Users/adrien/Development/Config/config/nano/nano.d/puppet/puppet.nanorc on line 10: Bad regex "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|)\>": empty (sub)expression
llowder commented 11 years ago

thanks for the notice, I'll take a look at this tonight when I get home and see if I can't get that fixed. Looks like I may have miscopied the last time I updated this.

adrien-mogenet commented 11 years ago

By the way, I was on the MacOSX Lion version. This nanorc, forked from your file, worked: https://github.com/tmatthaeus/puppet-nano/blob/master/puppet.nanorc