diff --git a/runtime/syntax/caddyfile.micro b/runtime/syntax/caddyfile.micro new file mode 100644 index 00000000..253bf992 --- /dev/null +++ b/runtime/syntax/caddyfile.micro @@ -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:]]+$"