mirror of
https://github.com/vim/vim.git
synced 2025-08-25 19:53:53 -04:00
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 <cb@256bit.org>
This commit is contained in:
parent
30df42557c
commit
9a667b4dba
@ -2,6 +2,7 @@
|
|||||||
" Language: SWIG
|
" Language: SWIG
|
||||||
" Maintainer: Julien Marrec <julien.marrec 'at' gmail com>
|
" Maintainer: Julien Marrec <julien.marrec 'at' gmail com>
|
||||||
" Last Change: 2023 November 23
|
" 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
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -9,5 +10,7 @@ if exists("b:did_ftplugin")
|
|||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let b:undo_ftplugin = "setlocal iskeyword<"
|
let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"
|
||||||
setlocal iskeyword+=%
|
setlocal iskeyword+=%
|
||||||
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
|
setlocal commentstring=//\ %s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user