]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(ishd): set comments and commentstring options in filetype plugin
authorRiley Bruins <ribru17@hotmail.com>
Wed, 18 Jun 2025 16:43:42 +0000 (18:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Jun 2025 16:46:12 +0000 (18:46 +0200)
closes: #17490

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/ishd.vim

index 5e33efde789d08a5679215a19a9bc421637d546c..5525cb6cdef926bf7b07d6d9e969f218a1a2df47 100644 (file)
@@ -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")