mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-patch:736cd18: runtime(ishd): set comments and commentstring options in filetype plugin
closes: vim/vim#17490
736cd18671
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:

committed by
Christian Clason

parent
f038213617
commit
255f313cf6
@@ -2,7 +2,8 @@
|
|||||||
" Language: InstallShield (ft=ishd)
|
" Language: InstallShield (ft=ishd)
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||||
" Last Change: 2024 Jan 14
|
" Last Change: 2025 Jun 18
|
||||||
|
" 2025 Jun 18 by Vim Project: set comments and commentstring option (#17490)
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@@ -12,8 +13,10 @@ let s:cpo_save = &cpo
|
|||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
setlocal foldmethod=syntax
|
setlocal foldmethod=syntax
|
||||||
|
setlocal commentstring=//\ %s
|
||||||
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl fdm<"
|
let b:undo_ftplugin = "setl fdm< com< cms"
|
||||||
|
|
||||||
" matchit support
|
" matchit support
|
||||||
if exists("loaded_matchit")
|
if exists("loaded_matchit")
|
||||||
|
Reference in New Issue
Block a user