runtime(dockerfile): set comments in filetype plugin

Commit: 
https://github.com/vim/vim/commit/61af587f26f56be7d6b55f77e42cc89504942cc0
Author: David Mandelberg <da...@mandelberg.org>
Date:   Sat Feb 22 15:09:03 2025 +0100

    runtime(dockerfile): set comments in filetype plugin
    
    closes: https://github.com/vim/vim/issues/16698
    
    Signed-off-by: David Mandelberg <da...@mandelberg.org>
    Signed-off-by: Honza Pokorny <ho...@redhat.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/dockerfile.vim b/runtime/ftplugin/dockerfile.vim
index e45bf4c1d..f9268fe89 100644
--- a/runtime/ftplugin/dockerfile.vim
+++ b/runtime/ftplugin/dockerfile.vim
@@ -1,7 +1,7 @@
 " Vim filetype plugin
 " Language:    Dockerfile
 " Maintainer:   Honza Pokorny <http://honza.ca>
-" Last Change: 2024 Dec 20
+" Last Change: 2025 Feb 21
 
 " Only do this when not done yet for this buffer
 if exists("b:did_ftplugin")
@@ -11,6 +11,7 @@ endif
 " Don't load another plugin for this buffer
 let b:did_ftplugin = 1
 
+setlocal comments=:#
 setlocal commentstring=#\ %s
 
-let b:undo_ftplugin = "setl commentstring<"
+let b:undo_ftplugin = "setl comments< commentstring<"

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1tlqHY-006VSA-DY%40256bit.org.

Raspunde prin e-mail lui