runtime/syntax/caddyfile.yaml
raw| 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 |