Add converted syntax files

This commit is contained in:
Zachary Yedidia
2017-03-21 14:55:22 -04:00
parent fa7f89a400
commit b977bf5cca
104 changed files with 1807 additions and 1233 deletions

15
runtime/syntax/sls.yaml Normal file
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"