runtime(compiler): Remove wrong escape in zig compiler files
Commit:
https://github.com/vim/vim/commit/53d97c93b73252c02ed12b350532da8a2c19eb11
Author: bennyyip <[email protected]>
Date: Sun May 24 17:41:58 2026 +0000
runtime(compiler): Remove wrong escape in zig compiler files
closes: https://github.com/vim/vim/issues/20312
Signed-off-by: bennyyip <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/compiler/zig.vim b/runtime/compiler/zig.vim
index 5f08423da..f6144c9f5 100644
--- a/runtime/compiler/zig.vim
+++ b/runtime/compiler/zig.vim
@@ -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,
diff --git a/runtime/compiler/zig_build_exe.vim
b/runtime/compiler/zig_build_exe.vim
index ab63bfffe..2f1681b50 100644
--- a/runtime/compiler/zig_build_exe.vim
+++ b/runtime/compiler/zig_build_exe.vim
@@ -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
diff --git a/runtime/compiler/zig_cc.vim b/runtime/compiler/zig_cc.vim
index 331d44751..d86bb48ef 100644
--- a/runtime/compiler/zig_cc.vim
+++ b/runtime/compiler/zig_cc.vim
@@ -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
diff --git a/runtime/compiler/zig_test.vim b/runtime/compiler/zig_test.vim
index 6dee38b2f..07cb88eb4 100644
--- a/runtime/compiler/zig_test.vim
+++ b/runtime/compiler/zig_test.vim
@@ -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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wRCsr-004PfB-S9%40256bit.org.