Mercurial > vim
annotate runtime/compiler/gcc.vim @ 30735:09a61a174259 v9.0.0702
patch 9.0.0702: incomplete testing cursor position with 'linebreak' set
Commit: https://github.com/vim/vim/commit/30c0c467d6cc2a7af960ccb9002b50115b0e55cf
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Oct 9 11:44:28 2022 +0100
patch 9.0.0702: incomplete testing cursor position with 'linebreak' set
Problem: Incomplete testing cursor position after change with 'linebreak'
set.
Solution: Add a test and move test cases together. (closes #11313)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Oct 2022 12:45:05 +0200 |
parents | b9bc47742df6 |
children | e1df51f68736 |
rev | line source |
---|---|
375 | 1 " Vim compiler file |
11062 | 2 " Compiler: GNU C Compiler |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2010-10-14 | |
17372 | 5 " changed pattern for entering/leaving directories |
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 | 8 |
9 if exists("current_compiler") | |
10 finish | |
11 endif | |
12 let current_compiler = "gcc" | |
13 | |
14 let s:cpo_save = &cpo | |
3237 | 15 set cpo&vim |
375 | 16 |
1621 | 17 CompilerSet errorformat= |
2034 | 18 \%*[^\"]\"%f\"%*\\D%l:%c:\ %m, |
375 | 19 \%*[^\"]\"%f\"%*\\D%l:\ %m, |
2034 | 20 \\"%f\"%*\\D%l:%c:\ %m, |
375 | 21 \\"%f\"%*\\D%l:\ %m, |
22 \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once, | |
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 | 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 | 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 | 31 \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m, |
17372 | 32 \%D%*\\a[%*\\d]:\ Entering\ directory\ %*[`']%f', |
33 \%X%*\\a[%*\\d]:\ Leaving\ directory\ %*[`']%f', | |
34 \%D%*\\a:\ Entering\ directory\ %*[`']%f', | |
35 \%X%*\\a:\ Leaving\ directory\ %*[`']%f', | |
375 | 36 \%DMaking\ %*\\a\ in\ %f |
37 | |
1213 | 38 if exists('g:compiler_gcc_ignore_unmatched_lines') |
1621 | 39 CompilerSet errorformat+=%-G%.%# |
1213 | 40 endif |
41 | |
375 | 42 let &cpo = s:cpo_save |
43 unlet s:cpo_save |