]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/caddyfile.yaml
b01f64812fbba23f2ed8e8b0ddfd681f9cbc0c5b
[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             - constant.specialChar: "\\\\."
16
17     - preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
18     - comment:
19         start: "#"
20         end: "$"
21         rules: []
22