micro/runtime/syntax/sls.micro

27 lines
570 B
Text
Raw Normal View History

2016-03-21 16:16:02 +00:00
## SaltStack files (*.sls)
##
syntax "Salt" "\.sls$"
# 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 "\b(True|False)\b"
# Anything between two single quotes
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
# Matching keywords
color yellow "\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\b"
# Comments
color brightblack "^#.*"
# Logic keywords
color magenta "\b(if|elif|else|or|not|and|endif|end)\b"