summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin/swig.vim
blob: a8cee72c5536ae4a29955e5d9437b6b76781cf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Vim filetype plugin file
" 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")
  finish
endif
let b:did_ftplugin = 1

let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"
setlocal iskeyword+=%
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s