]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/caddyfile.yaml
fc11c8b1606e4e960bc3b8d64d0c52731a1e53b0
[micro.git] / runtime / syntax / caddyfile.yaml
1 filetype: caddyfile
2
3 detect: 
4     filename: "Caddyfile"
5
6 rules:
7     - identifier: "^\\s*\\S+(\\s|$)"
8     - type: "^([\\w.:/-]+,? ?)+[,{]$"
9     - constant.specialChar: "\\s{$"
10     - constant.specialChar: "^\\s*}$"
11     - constant.string:
12         start: "\\\""
13         end: "\\\""
14         rules: []
15
16     - preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
17     - comment: "#.*"
18     - indent-char: "([[:space:]]{2,}|\\t){$"
19     - indent-char: "[[:space:]]+$"