mirror of
https://github.com/neovim/neovim.git
synced 2026-05-28 15:55:34 +00:00
vim-patch:53d97c9: runtime(compiler): Remove wrong escape in zig compiler files (#39989)
closes: vim/vim#20312
53d97c93b7
Co-authored-by: bennyyip <yebenmy@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
" Upstream: https://github.com/ziglang/zig.vim
|
||||
" Last Change:
|
||||
" 2026 May 12 by the Vim project (set errormformat)
|
||||
" 2026 May 24 by the Vim project (do not escape vars for makeprg)
|
||||
|
||||
if exists("current_compiler")
|
||||
finish
|
||||
@@ -13,7 +14,7 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" a subcommand must be provided for the this compiler (test, build-exe, etc)
|
||||
CompilerSet makeprg=zig\ \$*\ \%:S
|
||||
CompilerSet makeprg=zig\ $*\ %:S
|
||||
|
||||
CompilerSet errorformat=
|
||||
\%-G,
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
" Upstream: https://github.com/ziglang/zig.vim
|
||||
" Last Change: 2025 Nov 16 by the Vim Project (set errorformat)
|
||||
" 2026 May 12 by the Vim project (remove errorformat)
|
||||
" 2026 May 24 by the Vim project (do not escape vars for makeprg)
|
||||
|
||||
if exists('current_compiler')
|
||||
finish
|
||||
@@ -13,7 +14,7 @@ let current_compiler = 'zig_build_exe'
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
CompilerSet makeprg=zig\ build-exe\ \%:S\ \$*
|
||||
CompilerSet makeprg=zig\ build-exe\ %:S\ $*
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
" Vim compiler file
|
||||
" Compiler: Zig Compiler (zig cc)
|
||||
" Last Change: 2026 May 12
|
||||
" 2026 May 24 by the Vim project (do not escape vars for makeprg)
|
||||
|
||||
if exists('current_compiler')
|
||||
finish
|
||||
@@ -11,7 +12,7 @@ let current_compiler = 'zig_cc'
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
CompilerSet makeprg=zig\ cc\ \%:S\ \$*
|
||||
CompilerSet makeprg=zig\ cc\ %:S\ $*
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
" Upstream: https://github.com/ziglang/zig.vim
|
||||
" Last Change: 2025 Nov 16 by the Vim Project (set errorformat)
|
||||
" 2026 May 12 by the Vim Project (remove error format)
|
||||
" 2026 May 24 by the Vim project (do not escape vars for makeprg)
|
||||
|
||||
if exists('current_compiler')
|
||||
finish
|
||||
@@ -13,7 +14,7 @@ let current_compiler = 'zig_test'
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
CompilerSet makeprg=zig\ test\ \%:S\ \$*
|
||||
CompilerSet makeprg=zig\ test\ %:S\ $*
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
Reference in New Issue
Block a user