runtime(dockerfile): enable spellchecking of comments in syntax script

Commit: 
https://github.com/vim/vim/commit/3d2a996267758284c85b893401d2e331496eb154
Author: Kafva <36083692+ka...@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+ka...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/dockerfile.vim b/runtime/syntax/dockerfile.vim
index ce52e697c..6ec71fcdb 100644
--- 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 keepend start=/ \[/ 
skip=/ \\_./ end
 syntax region dockerfileShell  contained keepend start=/ / skip=/ \\_./ end=/ 
$/ contains=@Shell
 syntax region dockerfileValue  contained keepend start=/ / skip=/ \\_./ end=/ 
$/ contains=dockerfileString
 
-syntax region dockerfileComment start=/ ^\s*#/ end=/ $/
+syntax region dockerfileComment start=/ ^\s*#/ end=/ $/ contains=@Spell
 set commentstring=#\ %s
 
 hi def link dockerfileString String

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sPJ1S-001xq6-Mk%40256bit.org.

Raspunde prin e-mail lui