annotate runtime/compiler/gcc.vim @ 24852:3c8bd1d392d1 v8.2.2964

patch 8.2.2964: Vim9: hang when using space after -> Commit: https://github.com/vim/vim/commit/a733042b124357225e4081e10ef28591236c6077 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 8 20:46:45 2021 +0200 patch 8.2.2964: Vim9: hang when using space after -> Problem: Vim9: hang when using space after ->. (Naohiro Ono) Solution: Skip over white space to find the function name. (closes https://github.com/vim/vim/issues/8341)
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Jun 2021 21:00:03 +0200
parents b9bc47742df6
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
1 " Vim compiler file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
2 " Compiler: GNU C Compiler
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
4 " Latest Revision: 2010-10-14
17372
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
5 " changed pattern for entering/leaving directories
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
6 " by Daniel Hahler, 2019 Jul 12
8869
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 5555
diff changeset
7 " added line suggested by Anton Lindqvist 2016 Mar 31
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
8
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
9 if exists("current_compiler")
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
10 finish
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
11 endif
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
12 let current_compiler = "gcc"
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
13
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
14 let s:cpo_save = &cpo
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2608
diff changeset
15 set cpo&vim
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
16
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 1213
diff changeset
17 CompilerSet errorformat=
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
18 \%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
19 \%*[^\"]\"%f\"%*\\D%l:\ %m,
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
20 \\"%f\"%*\\D%l:%c:\ %m,
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
21 \\"%f\"%*\\D%l:\ %m,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
22 \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
23 \%-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
24 \%f:%l:%c:\ %trror:\ %m,
2236
dc2e5ec0500d Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
25 \%f:%l:%c:\ %tarning:\ %m,
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1621
diff changeset
26 \%f:%l:%c:\ %m,
2608
7d8af31066c8 Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2236
diff changeset
27 \%f:%l:\ %trror:\ %m,
2236
dc2e5ec0500d Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
28 \%f:%l:\ %tarning:\ %m,
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
29 \%f:%l:\ %m,
8869
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 5555
diff changeset
30 \%f:\\(%*[^\\)]\\):\ %m,
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
31 \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
17372
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
32 \%D%*\\a[%*\\d]:\ Entering\ directory\ %*[`']%f',
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
33 \%X%*\\a[%*\\d]:\ Leaving\ directory\ %*[`']%f',
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
34 \%D%*\\a:\ Entering\ directory\ %*[`']%f',
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
35 \%X%*\\a:\ Leaving\ directory\ %*[`']%f',
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
36 \%DMaking\ %*\\a\ in\ %f
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
37
1213
8906c10ecbb0 updated for version 7.1b
vimboss
parents: 839
diff changeset
38 if exists('g:compiler_gcc_ignore_unmatched_lines')
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 1213
diff changeset
39 CompilerSet errorformat+=%-G%.%#
1213
8906c10ecbb0 updated for version 7.1b
vimboss
parents: 839
diff changeset
40 endif
8906c10ecbb0 updated for version 7.1b
vimboss
parents: 839
diff changeset
41
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
42 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
43 unlet s:cpo_save