Merge pull request #60 from natalie-/master

Add support for SaltStack states (*.sls).
This commit is contained in:
Anthony Scopatz
2015-08-20 09:59:17 -04:00
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ include ~/.nano/ruby.nanorc
include ~/.nano/scala.nanorc
include ~/.nano/sed.nanorc
include ~/.nano/sh.nanorc
include ~/.nano/sls.nanorc
include ~/.nano/sql.nanorc
include ~/.nano/systemd.nanorc
include ~/.nano/tcl.nanorc
+26
View File
@@ -0,0 +1,26 @@
## 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 "\<(True|False)\>"
# Anything between two single quotes
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
# Matching keywords
color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>"
# Comments
color brightblack "^#.*"
# Logic keywords
color magenta "\<(if|elif|else|or|not|and|endif|end)\>"