Skip to content

Commit 3cf372a

Browse files
committed
Add support for directives with digits and uppercase letter (e.g. rfc2136)
1 parent 705a72b commit 3cf372a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/caddyfile.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if exists("b:current_syntax")
55
finish
66
endif
77

8-
syn match caddyDirective "^\s*\([a-z]\+\)" nextgroup=caddyDirectiveArgs skipwhite
8+
syn match caddyDirective "^\s*\([a-zA-Z0-9_]\+\)" nextgroup=caddyDirectiveArgs skipwhite
99
syn region caddyDirectiveArgs start="" end="\({\|#\|$\)"me=s-1 oneline contained contains=caddyPlaceholder,caddyString nextgroup=caddyDirectiveBlock skipwhite
1010
syn region caddyDirectiveBlock start="{" skip="\\}" end="}" contained contains=caddySubdirective,caddyComment
1111

0 commit comments

Comments
 (0)