mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Add more syntax files and include syntax highlighter in the repo
This commit is contained in:
21
runtime/syntax/caddyfile.yaml
Normal file
21
runtime/syntax/caddyfile.yaml
Normal 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: []
|
||||
Reference in New Issue
Block a user