micro/runtime/syntax/sls.micro

27 lines
618 B
Text
Raw Normal View History

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