xref: /vim-8.2.3635/runtime/compiler/cs.vim (revision 5477506a)
1" Vim compiler file
2" Compiler:               Microsoft Visual Studio C#
3" Maintainer:             Yichao Zhou ([email protected])
4" Previous Maintainer:    Joseph H. Yao ([email protected])
5" Last Change:            Jul 22, 2019
6
7if exists("current_compiler")
8  finish
9endif
10let current_compiler = "cs"
11let s:keepcpo= &cpo
12set cpo&vim
13
14if exists(":CompilerSet") != 2		" older Vim always used :setlocal
15  command -nargs=* CompilerSet setlocal <args>
16endif
17
18CompilerSet errorformat&
19CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
20            \%trror%*[^:]:\ %m,
21            \%tarning%*[^:]:\ %m
22
23CompilerSet makeprg=csc\ %:S
24
25let &cpo = s:keepcpo
26unlet s:keepcpo
27