]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/caddyfile.yaml
80c241c9d42656ab5c20064634dbb8a880137654
[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