vim-patch:e4c157b: runtime(nroff,groff): update commentstyle in filetype plugins

closes: vim/vim#17516

https://github.com/vim/vim/commit/e4c157b9c1225a733a5ff73a5325a35996c07559

Co-authored-by: jtmr05 <62111562+jtmr05@users.noreply.github.com>
This commit is contained in:
Christian Clasonandjtmr05 authored and Christian Clason committed 2025-06-19 11:10:26 +02:00
1 parent fb8dba413f
commit f038213617
2 files changed
+6 -1

No files matched your search

+4
View 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
+2 -1
View 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