2017-02-26 01:02:39 +03:00
|
|
|
filetype: caddyfile
|
|
|
|
|
2017-03-21 22:07:39 +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 22:07:39 +03:00
|
|
|
start: "\""
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "\""
|
2017-03-29 16:45:16 +03:00
|
|
|
skip: "\\\\."
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
2017-02-26 01:02:39 +03:00
|
|
|
|
|
|
|
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
|
2017-03-21 22:07:39 +03:00
|
|
|
- comment:
|
|
|
|
start: "#"
|
|
|
|
end: "$"
|
|
|
|
rules: []
|
2017-03-23 02:03:06 +03:00
|
|
|
|