Many optimizations and new syntax files

This commit is contained in:
Zachary Yedidia
2017-03-26 19:14:03 -04:00
parent 56f3992cdb
commit 084c2be66c
103 changed files with 2079 additions and 342 deletions
+15
View File
@@ -0,0 +1,15 @@
filetype: salt
detect:
filename: "\\.sls$"
rules:
- identifier.var: "^[^ -].*:$"
- identifier.var: ".*:"
- default: "salt:"
- constant.number: "/*[0-9]/*"
- constant.bool: "\\b(True|False)\\b"
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
- special: "\\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\\b"
- comment: "^#.*"
- statement: "\\b(if|elif|else|or|not|and|endif|end)\\b"