File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ if exists("b:current_syntax")
6
6
finish
7
7
endif
8
8
9
- syn match caddyDirective " ^\s *\( [a-zA-Z0-9_] \+\ )" nextgroup =caddyDirectiveArgs skipwhite
9
+ syn match caddyDirective " \v ^\s *( \w\S * )" nextgroup =caddyDirectiveArgs skipwhite
10
10
syn region caddyDirectiveArgs start =" " end =" \( {\| #\| $\) " me =s - 1 oneline contained contains =caddyPlaceholder,caddyString,caddyNamedMatcher nextgroup =caddyDirectiveBlock skipwhite
11
11
syn region caddyDirectiveBlock start =" {" skip =" \\ }" end =" }" contained contains =caddySubdirective,caddyComment,caddyImport
12
12
13
- syn match caddySubdirective " ^\s *\( [a-zA-Z0-9_] \+\ )" contained nextgroup =caddySubdirectiveArgs skipwhite
13
+ syn match caddySubdirective " \v ^\s *( \w\S * )" contained nextgroup =caddySubdirectiveArgs skipwhite
14
14
syn region caddySubdirectiveArgs start =" " end =" \( #\| $\) " me =s - 1 oneline contained contains =caddyPlaceholder,caddyString,caddyNamedMatcher
15
15
16
16
" Needs priority over Directive
17
- syn match caddyImport " \v ^\s *( import) " nextgroup =caddyImportPattern skipwhite
17
+ syn match caddyImport " \v ^\s *< import> " nextgroup =caddyImportPattern skipwhite
18
18
syn match caddyImportPattern " \v\c\S +" contained nextgroup =caddyImportArgs skipwhite
19
19
syn region caddyImportArgs start =" " end =" $" me =s - 1 oneline contained contains =caddyPlaceholder,caddyString,caddyNamedMatcher
20
20
You can’t perform that action at this time.
0 commit comments