]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(swig): add 'comments', 'commentstring' in filetype plugin
authorRiley Bruins <ribru17@hotmail.com>
Tue, 15 Jul 2025 19:13:02 +0000 (21:13 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 15 Jul 2025 19:13:41 +0000 (21:13 +0200)
Reference:
https://www.swig.org/Doc1.3/SWIG.html#SWIG_nn5

closes: #17753

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

index 506c929a43cf70f449f66873645a128085d21b38..a8cee72c5536ae4a29955e5d9437b6b76781cf93 100644 (file)
@@ -2,6 +2,7 @@
 " Language:    SWIG
 " Maintainer:  Julien Marrec <julien.marrec 'at' gmail com>
 " Last Change: 2023 November 23
+" 2025 July 14 by Vim project: set 'comment'/'commentstring' options
 
 " Only do this when not done yet for this buffer
 if exists("b:did_ftplugin")
@@ -9,5 +10,7 @@ if exists("b:did_ftplugin")
 endif
 let b:did_ftplugin = 1
 
-let b:undo_ftplugin = "setlocal iskeyword<"
+let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"
 setlocal iskeyword+=%
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s