micro/runtime/syntax/sls.micro

28 lines
624 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.bool "\b(True|False)\b"
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
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
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"