]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(dockerfile): do not set commentstring in syntax script
authorChristian Brabandt <cb@256bit.org>
Fri, 20 Dec 2024 18:53:55 +0000 (19:53 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Dec 2024 18:53:55 +0000 (19:53 +0100)
fixes: #16268

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/dockerfile.vim
runtime/syntax/dockerfile.vim

index 2e3c447b5956fc84800300a56a74b6dbc7b41491..e45bf4c1d8600e3678654f01e93cacdf33d6a02c 100644 (file)
@@ -1,7 +1,7 @@
 " Vim filetype plugin
 " Language:    Dockerfile
 " Maintainer:   Honza Pokorny <http://honza.ca>
-" Last Change: 2014 Aug 29
+" Last Change: 2024 Dec 20
 
 " Only do this when not done yet for this buffer
 if exists("b:did_ftplugin")
@@ -11,6 +11,6 @@ endif
 " Don't load another plugin for this buffer
 let b:did_ftplugin = 1
 
-let b:undo_ftplugin = "setl commentstring<"
-
 setlocal commentstring=#\ %s
+
+let b:undo_ftplugin = "setl commentstring<"
index 6ec71fcdb61cf8c7bc4a9bbb3bb854c2536e2e31..f1d612f4add181e8fcfacead792c1c29e3099cae 100644 (file)
@@ -1,6 +1,6 @@
 " dockerfile.vim - Syntax highlighting for Dockerfiles
 " Maintainer:   Honza Pokorny <https://honza.ca>
-" Last Change:  2024 Jul 03
+" Last Change:  2024 Dec 20
 " License:      BSD
 
 " https://docs.docker.com/engine/reference/builder/
@@ -35,7 +35,6 @@ syntax region dockerfileShell  contained keepend start=/\v/ skip=/\v\\\_./ end=/
 syntax region dockerfileValue  contained keepend start=/\v/ skip=/\v\\\_./ end=/\v$/ contains=dockerfileString
 
 syntax region dockerfileComment start=/\v^\s*#/ end=/\v$/ contains=@Spell
-set commentstring=#\ %s
 
 hi def link dockerfileString String
 hi def link dockerfileKeyword Keyword