blob: 20f0bb3366da36904d5c9331d846142982f7db57 [file] [log] [blame]
Bram Moolenaar86b48162022-12-06 18:20:10 +00001" Vim compiler file
2" Compiler: Zig Compiler (zig build-exe)
3" Upstream: https://github.com/ziglang/zig.vim
4
5if exists('current_compiler')
6 finish
7endif
8runtime compiler/zig.vim
9let current_compiler = 'zig_build_exe'
10
11let s:save_cpo = &cpo
12set cpo&vim
13
14
15if exists(':CompilerSet') != 2
16 command -nargs=* CompilerSet setlocal <args>
17endif
18
19if has('patch-7.4.191')
20 CompilerSet makeprg=zig\ build-exe\ \%:S\ \$*
21else
22 CompilerSet makeprg=zig\ build-exe\ \"%\"\ \$*
23endif
24
25let &cpo = s:save_cpo
26unlet s:save_cpo
27" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab