changeset 35509:0c191d9c6206

runtime(dockerfile): enable spellchecking of comments in syntax script Commit: https://github.com/vim/vim/commit/3d2a996267758284c85b893401d2e331496eb154 Author: Kafva <36083692+Kafva@users.noreply.github.com> Date: Thu Jul 4 11:38:00 2024 +0200 runtime(dockerfile): enable spellchecking of comments in syntax script closes: https://github.com/vim/vim/issues/15147 Signed-off-by: Kafva <36083692+Kafva@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jul 2024 11:45:02 +0200
parents 22d52fec43fa
children f69896b8f403
files runtime/syntax/dockerfile.vim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/dockerfile.vim
+++ b/runtime/syntax/dockerfile.vim
@@ -1,6 +1,6 @@
 " dockerfile.vim - Syntax highlighting for Dockerfiles
 " Maintainer:   Honza Pokorny <https://honza.ca>
-" Last Change:  2020 Feb 11
+" Last Change:  2024 Jul 03
 " License:      BSD
 
 " https://docs.docker.com/engine/reference/builder/
@@ -34,7 +34,7 @@ syntax region dockerfileJSON   contained
 syntax region dockerfileShell  contained keepend start=/\v/ skip=/\v\\\_./ end=/\v$/ contains=@Shell
 syntax region dockerfileValue  contained keepend start=/\v/ skip=/\v\\\_./ end=/\v$/ contains=dockerfileString
 
-syntax region dockerfileComment start=/\v^\s*#/ end=/\v$/
+syntax region dockerfileComment start=/\v^\s*#/ end=/\v$/ contains=@Spell
 set commentstring=#\ %s
 
 hi def link dockerfileString String