| 1 |
filetype: puppet |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.pp$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- default: "^[[:space:]]([a-z][a-z0-9_]+)" |
| 8 |
- identifier.var: "\\$[a-z:][a-z0-9_:]+" |
| 9 |
- type: "\\b(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)\\b" |
| 10 |
- statement: "\\b(class|define|if|else|undef|inherits)\\b" |
| 11 |
- symbol: "(=|-|~|>)" |
| 12 |
- identifier.var: "(\\$|@|@@)?\\b[A-Z]+[0-9A-Z_a-z]*" |
| 13 |
- symbol: "([ ]|^):[0-9A-Z_]+\\b" |
| 14 |
- constant: "/([^/]|(\\\\/))*/[iomx]*|%r\\{([^}]|(\\\\}))*\\}[iomx]*" |
| 15 |
- constant.string: "`[^`]*`|%x\\{[^}]*\\}" |
| 16 |
- constant.string: "\"([^\"]|(\\\\\"))*\"|%[QW]?\\{[^}]*\\}|%[QW]?\\([^)]*\\)|%[QW]?<[^>]*>|%[QW]?\\[[^]]*\\]|%[QW]?\\$[^$]*\\$|%[QW]?\\^[^^]*\\^|%[QW]?![^!]*!" |
| 17 |
- special: "\\$\\{[^}]*\\}" |
| 18 |
- constant.string: "'([^']|(\\\\'))*'|%[qw]\\{[^}]*\\}|%[qw]\\([^)]*\\)|%[qw]<[^>]*>|%[qw]\\[[^]]*\\]|%[qw]\\$[^$]*\\$|%[qw]\\^[^^]*\\^|%[qw]![^!]*!" |
| 19 |
- comment: "#[^{].*$|#$" |
| 20 |
- comment.bright: "##[^{].*$|##$" |
| 21 |
- todo: "(XXX|TODO|FIXME|\\?\\?\\?)" |
| 22 |
- indent-char.whitespace: "[[:space:]]+$" |