From b7ec8b632a99a51abcbd7e1e97930879d48c0a22 Mon Sep 17 00:00:00 2001 From: Tim Weber Date: Sat, 31 May 2025 17:54:49 +0200 Subject: [PATCH] Do spell checking in comments only This will also disable spell checking for all other syntax items, like directive names and strings, which is probably the right thing to do. --- syntax/caddyfile.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/caddyfile.vim b/syntax/caddyfile.vim index 14ac889..6493853 100644 --- a/syntax/caddyfile.vim +++ b/syntax/caddyfile.vim @@ -31,7 +31,7 @@ syn region caddyNamedMatcherDefBlock start="{" skip="\\}" end="}" contained cont syn region caddyPlaceholder start="{" skip="\\}" end="}" oneline contained syn region caddyString start='"' skip='\\\\\|\\"' end='"' oneline -syn region caddyComment start="#" end="$" oneline +syn region caddyComment start="#" end="$" oneline contains=@Spell hi link caddyDirective Keyword hi link caddySubdirective Structure