]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/caddyfile.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[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         skip: "\\\\."
15         rules:
16             - constant.specialChar: "\\\\."
17
18     - preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
19     - comment:
20         start: "#"
21         end: "$"
22         rules: []
23