filetype: caddyfile
-detect:
+detect:
filename: "Caddyfile"
rules:
- constant.specialChar: "\\s{$"
- constant.specialChar: "^\\s*}$"
- constant.string:
- start: "\\\""
- end: "\\\""
- rules: []
+ start: "\""
+ end: "\""
+ skip: "\\\\."
+ rules:
+ - constant.specialChar: "\\\\."
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
- - comment: "#.*"
- - indent-char: "([[:space:]]{2,}|\\t){$"
- - indent-char: "[[:space:]]+$"
+ - comment:
+ start: "#"
+ end: "$"
+ rules: []
+