blob: a82d2a637884422c04c28cb62b25f46cbc53a658 [file] [log] [blame]
Bram Moolenaar86b48162022-12-06 18:20:10 +00001" Vim compiler file
2" Compiler: Zig Compiler (zig test)
3" Upstream: https://github.com/ziglang/zig.vim
4
5if exists('current_compiler')
6 finish
7endif
8runtime compiler/zig.vim
9let current_compiler = 'zig_test'
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\ test\ \%:S\ \$*
21else
22 CompilerSet makeprg=zig\ test\ \"%\"\ \$*
23endif
24
25let &cpo = s:save_cpo
26unlet s:save_cpo
27" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab