runtime/syntax/sls.yaml
raw| 1 | filetype: salt |
| 2 | |
| 3 | detect: |
| 4 | filename: "\\.sls$" |
| 5 | |
| 6 | rules: |
| 7 | - identifier.var: "^[^ -].*:$" |
| 8 | - identifier.var: ".*:" |
| 9 | - default: "salt:" |
| 10 | - constant.number: "/*[0-9]/*" |
| 11 | - constant.bool: "\\b(True|False)\\b" |
| 12 | - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'" |
| 13 | - special: "\\b(grain|grains|compound|pcre|grain_pcre|list|pillar)\\b" |
| 14 | - comment: "^#.*" |
| 15 | - statement: "\\b(if|elif|else|or|not|and|endif|end)\\b" |