comparison runtime/ftplugin/perl.vim @ 35324:7c7432a53a6c v9.1.0464

patch 9.1.0464: no whitespace padding in commentstring option in ftplugins Commit: https://github.com/vim/vim/commit/0a0830624a260660c7fa692ecb7e6e5de09114ba Author: Riley Bruins <ribru17@hotmail.com> Date: Mon Jun 3 20:40:45 2024 +0200 patch 9.1.0464: no whitespace padding in commentstring option in ftplugins Problem: no whitespace padding in commentstring option in ftplugins Solution: Change default to include whitespace padding, update existing filetype plugins with the new default value (Riley Bruins) closes: #14843 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 03 Jun 2024 21:00:04 +0200
parents 8ae680be2a51
children
comparison
equal deleted inserted replaced
35323:67074ed514fc 35324:7c7432a53a6c
6 " License: Vim License (see :help license) 6 " License: Vim License (see :help license)
7 " Last Change: 2021 Nov 10 7 " Last Change: 2021 Nov 10
8 " 2023 Sep 07 by Vim Project (safety check: don't execute perl 8 " 2023 Sep 07 by Vim Project (safety check: don't execute perl
9 " from current directory) 9 " from current directory)
10 " 2024 Jan 14 by Vim Project (browsefilter) 10 " 2024 Jan 14 by Vim Project (browsefilter)
11 " 2024 May 24 by Riley Bruins <ribru17@gmail.com> ('commentstring')
11 12
12 if exists("b:did_ftplugin") | finish | endif 13 if exists("b:did_ftplugin") | finish | endif
13 let b:did_ftplugin = 1 14 let b:did_ftplugin = 1
14 15
15 " Make sure the continuation lines below do not cause problems in 16 " Make sure the continuation lines below do not cause problems in
20 setlocal formatoptions-=t 21 setlocal formatoptions-=t
21 setlocal formatoptions+=crqol 22 setlocal formatoptions+=crqol
22 setlocal keywordprg=perldoc\ -f 23 setlocal keywordprg=perldoc\ -f
23 24
24 setlocal comments=:# 25 setlocal comments=:#
25 setlocal commentstring=#%s 26 setlocal commentstring=#\ %s
26 27
27 " Provided by Ned Konz <ned at bike-nomad dot com> 28 " Provided by Ned Konz <ned at bike-nomad dot com>
28 "--------------------------------------------- 29 "---------------------------------------------
29 setlocal include=\\<\\(use\\\|require\\)\\> 30 setlocal include=\\<\\(use\\\|require\\)\\>
30 " '+' is removed to support plugins in Catalyst or DBIx::Class 31 " '+' is removed to support plugins in Catalyst or DBIx::Class