mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Improve new syntax files and fix a region glitch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
filetype: caddyfile
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "Caddyfile"
|
||||
|
||||
rules:
|
||||
@@ -9,11 +9,13 @@ rules:
|
||||
- constant.specialChar: "\\s{$"
|
||||
- constant.specialChar: "^\\s*}$"
|
||||
- constant.string:
|
||||
start: "\\\""
|
||||
end: "\\\""
|
||||
rules: []
|
||||
start: "\""
|
||||
end: "\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
- preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
|
||||
- comment: "#.*"
|
||||
- indent-char: "([[:space:]]{2,}|\\t){$"
|
||||
- indent-char: "[[:space:]]+$"
|
||||
- comment:
|
||||
start: "#"
|
||||
end: "$"
|
||||
rules: []
|
||||
|
||||
Reference in New Issue
Block a user