commit 255f313cf6e87709e999615624e928c4c3a68af7
parent f0382136178695ed1a1e430b811324cd7b6e1acd
Author: Christian Clason <c.clason@uni-graz.at>
Date: Wed, 18 Jun 2025 18:49:16 +0200
vim-patch:736cd18: runtime(ishd): set comments and commentstring options in filetype plugin
closes: vim/vim#17490
https://github.com/vim/vim/commit/736cd18671895dc4875c4e00b19af417ec733087
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/runtime/ftplugin/ishd.vim b/runtime/ftplugin/ishd.vim
@@ -2,7 +2,8 @@
" Language: InstallShield (ft=ishd)
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
-" Last Change: 2024 Jan 14
+" Last Change: 2025 Jun 18
+" 2025 Jun 18 by Vim Project: set comments and commentstring option (#17490)
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
@@ -12,8 +13,10 @@ let s:cpo_save = &cpo
set cpo-=C
setlocal foldmethod=syntax
+setlocal commentstring=//\ %s
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
-let b:undo_ftplugin = "setl fdm<"
+let b:undo_ftplugin = "setl fdm< com< cms"
" matchit support
if exists("loaded_matchit")