File: sls.yaml

package info (click to toggle)
micro 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,828 kB
  • sloc: sh: 247; makefile: 77; xml: 53
file content (15 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"