2016-03-21 16:16:02 +00:00
|
|
|
## SaltStack files (*.sls)
|
|
|
|
|
##
|
|
|
|
|
|
2016-08-25 00:15:36 +00:00
|
|
|
syntax "salt" "\.sls$"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Anything ending in a colon (:), including things that start with a dash (-)
|
2017-03-01 14:30:35 +00:00
|
|
|
color identifier.var "^[^ -].*:$"
|
|
|
|
|
color identifier.var ".*:"
|
2016-03-21 16:16:02 +00:00
|
|
|
# Except for salt:// URLs
|
2017-03-01 14:30:35 +00:00
|
|
|
color default "salt:"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Numbers, etc
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.number "/*[0-9]/*"
|
2017-03-03 16:47:03 +00:00
|
|
|
color constant.bool "\b(True|False)\b"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Anything between two single quotes
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Matching keywords
|
2017-03-01 22:08:56 +00:00
|
|
|
color special "\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\b"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Comments
|
2017-03-01 14:30:35 +00:00
|
|
|
color comment "^#.*"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
# Logic keywords
|
2017-03-01 22:08:56 +00:00
|
|
|
color statement "\b(if|elif|else|or|not|and|endif|end)\b"
|
|
|
|
|
|