micro/runtime/syntax/caddyfile.yaml

20 lines
443 B
YAML
Raw Normal View History

filetype: caddyfile
2017-03-21 21:55:22 +03:00
detect:
filename: "Caddyfile"
rules:
- identifier: "^\\s*\\S+(\\s|$)"
- type: "^([\\w.:/-]+,? ?)+[,{]$"
- constant.specialChar: "\\s{$"
- constant.specialChar: "^\\s*}$"
- constant.string:
2017-03-21 21:55:22 +03:00
start: "\\\""
end: "\\\""
rules: []
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
2017-03-21 21:55:22 +03:00
- comment: "#.*"
- indent-char: "([[:space:]]{2,}|\\t){$"
- indent-char: "[[:space:]]+$"