mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(nroff,groff): update commentstyle in filetype plugins
closes: #17516 Signed-off-by: jtmr05 <62111562+jtmr05@users.noreply.github.com> Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
8e83105798
commit
e4c157b9c1
@ -2,6 +2,7 @@
|
|||||||
" Language: groff(7)
|
" Language: groff(7)
|
||||||
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
||||||
" Last Change: 2025 Apr 24
|
" Last Change: 2025 Apr 24
|
||||||
|
" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
finish
|
finish
|
||||||
@ -11,5 +12,8 @@ let b:nroff_is_groff = 1
|
|||||||
|
|
||||||
runtime! ftplugin/nroff.vim
|
runtime! ftplugin/nroff.vim
|
||||||
|
|
||||||
|
setlocal commentstring=\\#\ %s
|
||||||
|
setlocal comments=:\\#,:.\\\",:\\\",:'\\\",:'''
|
||||||
|
|
||||||
let b:undo_ftplugin .= '| unlet! b:nroff_is_groff'
|
let b:undo_ftplugin .= '| unlet! b:nroff_is_groff'
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
" 2025 Feb 12 by Wu, Zhenyu <wuzhenyu@ustc.edu> (matchit configuration #16619)
|
" 2025 Feb 12 by Wu, Zhenyu <wuzhenyu@ustc.edu> (matchit configuration #16619)
|
||||||
" 2025 Apr 16 by Eisuke Kawashima (cpoptions #17121)
|
" 2025 Apr 16 by Eisuke Kawashima (cpoptions #17121)
|
||||||
" 2025 Apr 24 by Eisuke Kawashima (move options from syntax to ftplugin #17174)
|
" 2025 Apr 24 by Eisuke Kawashima (move options from syntax to ftplugin #17174)
|
||||||
|
" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -19,7 +20,7 @@ let s:cpo_save = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
setlocal commentstring=.\\\"\ %s
|
setlocal commentstring=.\\\"\ %s
|
||||||
setlocal comments=:.\\\"
|
setlocal comments=:.\\\",:\\\",:'\\\",:'''
|
||||||
setlocal sections+=Sh
|
setlocal sections+=Sh
|
||||||
setlocal define=.\s*de
|
setlocal define=.\s*de
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user