blob: dafeb6f1e3953fa0b2c7943f9251ebcddb1385ab [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
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_test'
11
12let s:save_cpo = &cpo
13set cpo&vim
14
Bram Moolenaar86b48162022-12-06 18:20:10 +000015if has('patch-7.4.191')
16 CompilerSet makeprg=zig\ test\ \%:S\ \$*
17else
18 CompilerSet makeprg=zig\ test\ \"%\"\ \$*
19endif
20
21let &cpo = s:save_cpo
22unlet s:save_cpo
23" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab