From fa671c9b0930d9ebbef5783a0f57a1c12f57f9d0 Mon Sep 17 00:00:00 2001 From: Natalie Somersall Date: Thu, 20 Aug 2015 09:14:32 -0400 Subject: [PATCH] Add support for SaltStack states (*.sls). --- nanorc | 1 + sls.nanorc | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 sls.nanorc diff --git a/nanorc b/nanorc index e363aa7..16849ec 100644 --- a/nanorc +++ b/nanorc @@ -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 diff --git a/sls.nanorc b/sls.nanorc new file mode 100644 index 0000000..c600865 --- /dev/null +++ b/sls.nanorc @@ -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)\>"