Mercurial > vim
annotate runtime/compiler/gcc.vim @ 34778:e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Commit: https://github.com/vim/vim/commit/408281e16a36c15eed10fbf0406fa8ab159fc4bf
Author: Doug Kearns <dougkearns@gmail.com>
Date: Thu Apr 4 22:00:58 2024 +0200
runtime: Remove fallback :CompilerSet definition from compiler plugins
The :CompilerSet command was added in version Vim 6.4 which was released
twenty years ago. Other runtime files do not support versions of that
vintage so it is reasonable to remove this fallback command definition
now.
closes: #14399
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 04 Apr 2024 22:15:04 +0200 |
parents | b9bc47742df6 |
children |
rev | line source |
---|---|
375 | 1 " Vim compiler file |
34778
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
2 " Compiler: GNU C Compiler |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
4 " Last Change: 2010 Oct 14 |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
5 " changed pattern for entering/leaving directories |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
6 " by Daniel Hahler, 2019 Jul 12 |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
7 " added line suggested by Anton Lindqvist 2016 Mar 31 |
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
17372
diff
changeset
|
8 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) |
375 | 9 |
10 if exists("current_compiler") | |
11 finish | |
12 endif | |
13 let current_compiler = "gcc" | |
14 | |
15 let s:cpo_save = &cpo | |
3237 | 16 set cpo&vim |
375 | 17 |
1621 | 18 CompilerSet errorformat= |
2034 | 19 \%*[^\"]\"%f\"%*\\D%l:%c:\ %m, |
375 | 20 \%*[^\"]\"%f\"%*\\D%l:\ %m, |
2034 | 21 \\"%f\"%*\\D%l:%c:\ %m, |
375 | 22 \\"%f\"%*\\D%l:\ %m, |
23 \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once, | |
24 \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.), | |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
25 \%f:%l:%c:\ %trror:\ %m, |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
26 \%f:%l:%c:\ %tarning:\ %m, |
2034 | 27 \%f:%l:%c:\ %m, |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
2236
diff
changeset
|
28 \%f:%l:\ %trror:\ %m, |
2236
dc2e5ec0500d
Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
29 \%f:%l:\ %tarning:\ %m, |
375 | 30 \%f:%l:\ %m, |
8869
b73f9ed65072
commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents:
5555
diff
changeset
|
31 \%f:\\(%*[^\\)]\\):\ %m, |
375 | 32 \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m, |
17372 | 33 \%D%*\\a[%*\\d]:\ Entering\ directory\ %*[`']%f', |
34 \%X%*\\a[%*\\d]:\ Leaving\ directory\ %*[`']%f', | |
35 \%D%*\\a:\ Entering\ directory\ %*[`']%f', | |
36 \%X%*\\a:\ Leaving\ directory\ %*[`']%f', | |
375 | 37 \%DMaking\ %*\\a\ in\ %f |
38 | |
1213 | 39 if exists('g:compiler_gcc_ignore_unmatched_lines') |
1621 | 40 CompilerSet errorformat+=%-G%.%# |
1213 | 41 endif |
42 | |
375 | 43 let &cpo = s:cpo_save |
44 unlet s:cpo_save |