2017-02-26 01:02:39 +03:00
|
|
|
filetype: caddyfile
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-26 01:02:39 +03:00
|
|
|
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: []
|
2017-02-26 01:02:39 +03:00
|
|
|
|
|
|
|
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
|
2017-03-21 21:55:22 +03:00
|
|
|
- comment: "#.*"
|
|
|
|
- indent-char: "([[:space:]]{2,}|\\t){$"
|
|
|
|
- indent-char: "[[:space:]]+$"
|