2015-08-20 15:14:32 +02:00
|
|
|
## SaltStack files (*.sls)
|
|
|
|
##
|
|
|
|
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "Salt" "\.sls$"
|
2015-08-20 15:14:32 +02:00
|
|
|
|
|
|
|
# Anything ending in a colon (:), including things that start with a dash (-)
|
|
|
|
color blue "^[^ -].*:$"
|
|
|
|
color blue ".*:"
|
|
|
|
# Except for salt:// URLs
|
|
|
|
color white "salt:"
|
|
|
|
|
|
|
|
# Numbers, etc
|
|
|
|
color red "/*[0-9]/*"
|
|
|
|
color red "\<(True|False)\>"
|
|
|
|
|
|
|
|
# Anything between two single quotes
|
|
|
|
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
|
|
|
|
# Matching keywords
|
|
|
|
color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>"
|
|
|
|
|
|
|
|
# Comments
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "^#.*"
|
2015-08-20 15:14:32 +02:00
|
|
|
|
|
|
|
# Logic keywords
|
|
|
|
color magenta "\<(if|elif|else|or|not|and|endif|end)\>"
|
2016-12-06 22:17:01 +01:00
|
|
|
|
|
|
|
## Trailing spaces
|
|
|
|
color ,green "[[:space:]]+$"
|