mirror of
https://github.com/scopatz/nanorc
synced 2024-11-16 14:14:15 +01:00
Merge pull request #63 from liquidstate/master
improved puppet highlighting from https://github.com/llowder/puppet-nano/
This commit is contained in:
commit
c1b34bd1ad
@ -5,9 +5,12 @@ syntax "puppet" "\.pp$"
|
|||||||
#This goes first, so the normal builtins will override in some classes
|
#This goes first, so the normal builtins will override in some classes
|
||||||
## Paramerers
|
## Paramerers
|
||||||
color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)"
|
color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)"
|
||||||
|
color brightgreen "\$[a-z:][a-z0-9_:]+"
|
||||||
|
|
||||||
## List of built in types, also catches defines
|
## List of built in types, also catches defines
|
||||||
color yellow "\<(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|)\>"
|
color yellow "\<(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|anchor)\>"
|
||||||
|
color yellow "\<(class|define|if|else|undef|inherits)\>"
|
||||||
|
color red "(=|-|~|>)"
|
||||||
|
|
||||||
## Constants
|
## Constants
|
||||||
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
|
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
|
||||||
@ -31,5 +34,5 @@ color brightcyan "##[^{].*$" "##$"
|
|||||||
## Some common markers
|
## Some common markers
|
||||||
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
|
||||||
## Trailing spaces
|
## Trailing spaces
|
||||||
color ,red "[[:space:]]+$"
|
color red "[[:space:]]+$"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user