blob: 5a61c9f4235d8c98d1bf5ceab54e66c05a58009f [file] [log] [blame]
Bram Moolenaar86b48162022-12-06 18:20:10 +00001" Vim compiler file
2" Compiler: Zig Compiler (zig build)
3" Upstream: https://github.com/ziglang/zig.vim
Yinzuo Jiangcec44ea2024-04-06 01:59:39 +08004" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
Bram Moolenaar86b48162022-12-06 18:20:10 +00005
6if exists('current_compiler')
7 finish
8endif
9runtime compiler/zig.vim
10let current_compiler = 'zig_build'
11
12let s:save_cpo = &cpo
13set cpo&vim
14
Bram Moolenaar86b48162022-12-06 18:20:10 +000015if exists('g:zig_build_makeprg_params')
16 execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
17else
18 CompilerSet makeprg=zig\ build\ $*
19endif
20
21" TODO: anything to add to errorformat for zig build specifically?
22
23let &cpo = s:save_cpo
24unlet s:save_cpo
25" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab