]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/sls.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / sls.yaml
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"