Add Caddyfile syntax

This commit is contained in:
Matt Holt
2016-08-30 17:22:55 -06:00
committed by GitHub
parent b19b36d113
commit 2fc274da7d

View 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:]]+$"