mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Add Caddyfile syntax
This commit is contained in:
parent
b19b36d113
commit
2fc274da7d
1 changed files with 13 additions and 0 deletions
13
runtime/syntax/caddyfile.micro
Normal file
13
runtime/syntax/caddyfile.micro
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
syntax "caddyfile" "Caddyfile"
|
||||
|
||||
color identifier "^\s*\S+(\s|$)"
|
||||
color type "^([\w.:/-]+,? ?)+[,{]$"
|
||||
color constant.specialChar "\s{$"
|
||||
color constant.specialChar "^\s*}$"
|
||||
color constant.string start="\"" end="\""
|
||||
color preproc "\{(\w+|\$\w+|%\w+%)\}"
|
||||
color comment "#.*"
|
||||
|
||||
# extra and trailing spaces
|
||||
color ,red "([[:space:]]{2,}|\t){$"
|
||||
color ,red "[[:space:]]+$"
|
||||
Loading…
Reference in a new issue