robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:57352b2: runtime: mention subscription only ml, fix typo in maintainer email (#37222)db210dd2a4

master
1.3 KiB48 linesraw
1" Vim compiler file
2" Compiler:      Perl syntax checks (perl -Wc)
3" Maintainer:    vim-perl <vim-perl@googlegroups.com> (need to be subscribed to post)
4" Author:        Christian J. Robinson <heptite@gmail.com>
5" Homepage:      https://github.com/vim-perl/vim-perl
6" Bugs/requests: https://github.com/vim-perl/vim-perl/issues
7" License:       Vim License (see :help license)
8" Last Change:   2021 Nov 2
9"		2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
10
11if exists("current_compiler")
12  finish
13endif
14let current_compiler = "perl"
15
16let s:savecpo = &cpo
17set cpo&vim
18
19if get(g:, 'perl_compiler_force_warnings', 1)
20	let s:warnopt = 'W'
21else
22	let s:warnopt = 'w'
23endif
24
25if getline(1) =~# '-[^ ]*T'
26	let s:taintopt = 'T'
27else
28	let s:taintopt = ''
29endif
30
31exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %:S'
32
33CompilerSet errorformat=
34	\%-G%.%#had\ compilation\ errors.,
35	\%-G%.%#syntax\ OK,
36	\%m\ at\ %f\ line\ %l.,
37	\%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
38	\%+C%.%#
39
40" Explanation:
41" %-G%.%#had\ compilation\ errors.,  - Ignore the obvious.
42" %-G%.%#syntax\ OK,                 - Don't include the 'a-okay' message.
43" %m\ at\ %f\ line\ %l.,             - Most errors...
44" %+A%.%#\ at\ %f\ line\ %l\\,%.%#,  - As above, including ', near ...'
45" %+C%.%#                            -   ... Which can be multi-line.
46
47let &cpo = s:savecpo
48unlet s:savecpo