]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(nroff,groff): update commentstyle in filetype plugins
authorjtmr05 <62111562+jtmr05@users.noreply.github.com>
Wed, 18 Jun 2025 16:41:14 +0000 (18:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Jun 2025 16:41:14 +0000 (18:41 +0200)
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>
runtime/ftplugin/groff.vim
runtime/ftplugin/nroff.vim

index 3ebfa03c6e85eafad3f90e3f13e91ca268447b7e..f62852541188df8420795a05755edafc7cae6f5f 100644 (file)
@@ -2,6 +2,7 @@
 " Language:  groff(7)
 " Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
 " Last Change: 2025 Apr 24
+" 2025 Jun 18 by Vim Project: update commentstring option (#17516)
 
 if exists('b:did_ftplugin')
   finish
@@ -11,5 +12,8 @@ let b:nroff_is_groff = 1
 
 runtime! ftplugin/nroff.vim
 
+setlocal commentstring=\\#\ %s
+setlocal comments=:\\#,:.\\\",:\\\",:'\\\",:'''
+
 let b:undo_ftplugin .= '| unlet! b:nroff_is_groff'
 let b:did_ftplugin = 1
index cd2680ef584a589f6792033495c1698df942c338..24fcc9472a78dafbc9b949df60a4c581b5346baf 100644 (file)
@@ -9,6 +9,7 @@
 "      2025 Feb 12 by Wu, Zhenyu <wuzhenyu@ustc.edu> (matchit configuration #16619)
 "      2025 Apr 16 by Eisuke Kawashima (cpoptions #17121)
 "      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")
   finish
@@ -19,7 +20,7 @@ let s:cpo_save = &cpo
 set cpo&vim
 
 setlocal commentstring=.\\\"\ %s
-setlocal comments=:.\\\"
+setlocal comments=:.\\\",:\\\",:'\\\",:'''
 setlocal sections+=Sh
 setlocal define=.\s*de