annotate runtime/compiler/cs.vim @ 22645:13904ca59f96 v8.2.1871

patch 8.2.1871: using %v in 'errorformat' may fail before %Z Commit: https://github.com/vim/vim/commit/c95940c06a125d3afe6516f11f8b2f5697a6b3b9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 20 14:59:12 2020 +0200 patch 8.2.1871: using %v in 'errorformat' may fail before %Z Problem: Using %v in 'errorformat' may fail before %Z. Solution: Set qf_viscol only when qf_col is set. (closes https://github.com/vim/vim/issues/7169)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Oct 2020 15:00:04 +0200
parents 2704c4e3e20a
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
17571
2704c4e3e20a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 3496
diff changeset
2 " Compiler: Microsoft Visual Studio C#
2704c4e3e20a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 3496
diff changeset
3 " Maintainer: Yichao Zhou (broken.zhou@gmail.com)
2704c4e3e20a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 3496
diff changeset
4 " Previous Maintainer: Joseph H. Yao (hyao@sina.com)
2704c4e3e20a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 3496
diff changeset
5 " Last Change: Jul 22, 2019
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 let current_compiler = "cs"
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
11 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
12 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 CompilerSet errorformat&
2788
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
19 CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
20 \%trror%*[^:]:\ %m,
0877b8d6370e Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
21 \%tarning%*[^:]:\ %m
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
17571
2704c4e3e20a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 3496
diff changeset
23 CompilerSet makeprg=csc\ %:S
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
24
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
25 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2788
diff changeset
26 unlet s:keepcpo