runtime(nroff,groff): update commentstyle in filetype plugins
Commit:
https://github.com/vim/vim/commit/e4c157b9c1225a733a5ff73a5325a35996c07559
Author: jtmr05 <[email protected]>
Date: Wed Jun 18 18:41:14 2025 +0200
runtime(nroff,groff): update commentstyle in filetype plugins
closes: https://github.com/vim/vim/issues/17516
Signed-off-by: jtmr05 <[email protected]>
Signed-off-by: Eisuke Kawashima <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/groff.vim b/runtime/ftplugin/groff.vim
index 3ebfa03c6..f62852541 100644
--- a/runtime/ftplugin/groff.vim
+++ b/runtime/ftplugin/groff.vim
@@ -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
diff --git a/runtime/ftplugin/nroff.vim b/runtime/ftplugin/nroff.vim
index cd2680ef5..24fcc9472 100644
--- a/runtime/ftplugin/nroff.vim
+++ b/runtime/ftplugin/nroff.vim
@@ -9,6 +9,7 @@
" 2025 Feb 12 by Wu, Zhenyu <[email protected]> (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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uRvuM-006Ki8-Ga%40256bit.org.