runtime(swig): add 'comments', 'commentstring' in filetype plugin
Commit:
https://github.com/vim/vim/commit/9a667b4dba09aee7968f33686afcac99dab347df
Author: Riley Bruins <[email protected]>
Date: Tue Jul 15 21:13:02 2025 +0200
runtime(swig): add 'comments', 'commentstring' in filetype plugin
Reference:
https://www.swig.org/Doc1.3/SWIG.html#SWIG_nn5
closes: #17753
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/swig.vim b/runtime/ftplugin/swig.vim
index 506c929a4..a8cee72c5 100644
--- a/runtime/ftplugin/swig.vim
+++ b/runtime/ftplugin/swig.vim
@@ -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
--
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1ubl7L-007gGJ-PG%40256bit.org.