Add more syntax files and include syntax highlighter in the repo

This commit is contained in:
Zachary Yedidia
2017-02-25 17:02:39 -05:00
parent e6e190942c
commit bd0c5c655e
14 changed files with 807 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
filetype: caddyfile
detect:
filename: "Caddyfile"
rules:
- identifier: "^\\s*\\S+(\\s|$)"
- type: "^([\\w.:/-]+,? ?)+[,{]$"
- constant.specialChar: "\\s{$"
- constant.specialChar: "^\\s*}$"
- constant.string:
start: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
- comment:
start: "#"
end: "$"
rules: []