]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(dosini): Add support for # comments to ftplugin
authorDavid Mandelberg <david@mandelberg.org>
Thu, 20 Feb 2025 19:43:10 +0000 (20:43 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 20 Feb 2025 19:43:10 +0000 (20:43 +0100)
runtime/syntax/dosini.vim supports both ; and # as comments, and I think
a bunch of the files detected as dosini do too, so add support for # to
the ftplugin.

closes: #16681

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/dosini.vim

index 6a53dfd096e97b48aa220093207027c6945cbae7..3470bd3b3bd5e7df32c786921f5e436aee0356be 100644 (file)
@@ -1,7 +1,8 @@
 " Vim filetype plugin file
 " Language:             Configuration File (ini file) for MS-DOS/MS Windows
+" Maintainer:           This runtime file is looking for a new maintainer.
 " Previous Maintainer:  Nikolai Weibull <now@bitwi.se>
-" Latest Revision:      2008-07-09
+" Latest Revision:      2025 Feb 20
 
 if exists("b:did_ftplugin")
   finish
@@ -13,7 +14,7 @@ set cpo&vim
 
 let b:undo_ftplugin = "setl com< cms< fo<"
 
-setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql
+setlocal comments=:;,:# commentstring=;\ %s formatoptions-=t formatoptions+=croql
 
 let &cpo = s:cpo_save
 unlet s:cpo_save