2023-11-25 15:30:46 +01:00
|
|
|
" Vim filetype plugin file
|
|
|
|
|
" Language: SWIG
|
|
|
|
|
" Maintainer: Julien Marrec <julien.marrec 'at' gmail com>
|
|
|
|
|
" Last Change: 2023 November 23
|
2025-07-15 21:13:02 +02:00
|
|
|
" 2025 July 14 by Vim project: set 'comment'/'commentstring' options
|
2023-11-25 15:30:46 +01:00
|
|
|
|
|
|
|
|
" Only do this when not done yet for this buffer
|
|
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
2025-07-15 21:13:02 +02:00
|
|
|
let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"
|
2023-11-25 15:30:46 +01:00
|
|
|
setlocal iskeyword+=%
|
2025-07-15 21:13:02 +02:00
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
|
|
|
setlocal commentstring=//\ %s
|