vim-patch:cec44eae82c1 (#28199)

runtime: Remove more fallback :CompilerSet definitions from compiler plugins

Continue with vim/vim#14399

vim/vim@cec44ea
This commit is contained in:
Yinzuo Jiang 2024-04-06 11:13:56 +08:00 committed by GitHub
parent 97122eaa1c
commit fe0f1f1c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 39 deletions

View File

@ -2,7 +2,7 @@
" Compiler: Cargo Compiler " Compiler: Cargo Compiler
" Maintainer: Damien Radtke <damienradtke@gmail.com> " Maintainer: Damien Radtke <damienradtke@gmail.com>
" Latest Revision: 2023-09-11 " Latest Revision: 2023-09-11
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) " 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim " For bugs, patches and license go to https://github.com/rust-lang/rust.vim
if exists('current_compiler') if exists('current_compiler')
@ -16,10 +16,6 @@ let s:save_cpo = &cpo
set cpo&vim set cpo&vim
" vint: +ProhibitAbbreviationOption " vint: +ProhibitAbbreviationOption
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
if exists('g:cargo_makeprg_params') if exists('g:cargo_makeprg_params')
execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*' execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*'
else else

View File

@ -2,17 +2,13 @@
" Compiler: Go " Compiler: Go
" Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Maintainer: David Barnett (https://github.com/google/vim-ft-go)
" Last Change: 2014 Aug 16 " Last Change: 2014 Aug 16
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) " 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists('current_compiler') if exists('current_compiler')
finish finish
endif endif
let current_compiler = 'go' let current_compiler = 'go'
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo-=C set cpo-=C

View File

@ -2,7 +2,7 @@
" Compiler: Hare Compiler " Compiler: Hare Compiler
" Maintainer: Amelia Clarke <me@rsaihe.dev> " Maintainer: Amelia Clarke <me@rsaihe.dev>
" Last Change: 2022-09-21 " Last Change: 2022-09-21
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) " 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists("g:current_compiler") if exists("g:current_compiler")
finish finish
@ -12,10 +12,6 @@ let g:current_compiler = "hare"
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo&vim set cpo&vim
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
if filereadable("Makefile") || filereadable("makefile") if filereadable("Makefile") || filereadable("makefile")
CompilerSet makeprg=make CompilerSet makeprg=make
else else

View File

@ -3,7 +3,7 @@
" Maintainer: Jarek Sobiecki <harijari@go2.pl> " Maintainer: Jarek Sobiecki <harijari@go2.pl>
" Contributors: Peter Collingbourne and Enno Nagel " Contributors: Peter Collingbourne and Enno Nagel
" Last Change: 2024 Mar 29 " Last Change: 2024 Mar 29
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) " 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists("current_compiler") if exists("current_compiler")
finish finish
@ -13,10 +13,6 @@ let current_compiler = "mcs"
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo-=C set cpo-=C
if exists(":CompilerSet") != 2 " Older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet makeprg=mcs CompilerSet makeprg=mcs
CompilerSet errorformat= CompilerSet errorformat=
\%D%.%#Project\ \"%f/%[%^/\"]%#\"%.%#, \%D%.%#Project\ \"%f/%[%^/\"]%#\"%.%#,

View File

@ -2,6 +2,7 @@
" Compiler: scdoc " Compiler: scdoc
" Maintainer: Gregory Anders <contact@gpanders.com> " Maintainer: Gregory Anders <contact@gpanders.com>
" Last Updated: 2019-10-24 " Last Updated: 2019-10-24
" 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
" Upstream: https://github.com/gpanders/vim-scdoc " Upstream: https://github.com/gpanders/vim-scdoc
if exists('current_compiler') if exists('current_compiler')
@ -9,9 +10,5 @@ if exists('current_compiler')
endif endif
let current_compiler = 'scdoc' let current_compiler = 'scdoc'
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
CompilerSet makeprg=scdoc\ <\ %\ 2>&1 CompilerSet makeprg=scdoc\ <\ %\ 2>&1
CompilerSet errorformat=Error\ at\ %l:%c:\ %m,%-G%.%# CompilerSet errorformat=Error\ at\ %l:%c:\ %m,%-G%.%#

View File

@ -1,6 +1,7 @@
" Vim compiler file " Vim compiler file
" Compiler: Zig Compiler (zig build) " Compiler: Zig Compiler (zig build)
" Upstream: https://github.com/ziglang/zig.vim " Upstream: https://github.com/ziglang/zig.vim
" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists('current_compiler') if exists('current_compiler')
finish finish
@ -11,11 +12,6 @@ let current_compiler = 'zig_build'
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
if exists('g:zig_build_makeprg_params') if exists('g:zig_build_makeprg_params')
execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*' execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
else else

View File

@ -1,6 +1,7 @@
" Vim compiler file " Vim compiler file
" Compiler: Zig Compiler (zig build-exe) " Compiler: Zig Compiler (zig build-exe)
" Upstream: https://github.com/ziglang/zig.vim " Upstream: https://github.com/ziglang/zig.vim
" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists('current_compiler') if exists('current_compiler')
finish finish
@ -11,11 +12,6 @@ let current_compiler = 'zig_build_exe'
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
if has('patch-7.4.191') if has('patch-7.4.191')
CompilerSet makeprg=zig\ build-exe\ \%:S\ \$* CompilerSet makeprg=zig\ build-exe\ \%:S\ \$*
else else

View File

@ -1,6 +1,7 @@
" Vim compiler file " Vim compiler file
" Compiler: Zig Compiler (zig test) " Compiler: Zig Compiler (zig test)
" Upstream: https://github.com/ziglang/zig.vim " Upstream: https://github.com/ziglang/zig.vim
" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
if exists('current_compiler') if exists('current_compiler')
finish finish
@ -11,11 +12,6 @@ let current_compiler = 'zig_test'
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
if exists(':CompilerSet') != 2
command -nargs=* CompilerSet setlocal <args>
endif
if has('patch-7.4.191') if has('patch-7.4.191')
CompilerSet makeprg=zig\ test\ \%:S\ \$* CompilerSet makeprg=zig\ test\ \%:S\ \$*
else else