Bram Moolenaar | 86b4816 | 2022-12-06 18:20:10 +0000 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Compiler: Zig Compiler (zig test) |
| 3 | " Upstream: https://github.com/ziglang/zig.vim |
Yinzuo Jiang | cec44ea | 2024-04-06 01:59:39 +0800 | [diff] [blame] | 4 | " Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition) |
Bram Moolenaar | 86b4816 | 2022-12-06 18:20:10 +0000 | [diff] [blame] | 5 | |
| 6 | if exists('current_compiler') |
| 7 | finish |
| 8 | endif |
| 9 | runtime compiler/zig.vim |
| 10 | let current_compiler = 'zig_test' |
| 11 | |
| 12 | let s:save_cpo = &cpo |
| 13 | set cpo&vim |
| 14 | |
Bram Moolenaar | 86b4816 | 2022-12-06 18:20:10 +0000 | [diff] [blame] | 15 | if has('patch-7.4.191') |
| 16 | CompilerSet makeprg=zig\ test\ \%:S\ \$* |
| 17 | else |
| 18 | CompilerSet makeprg=zig\ test\ \"%\"\ \$* |
| 19 | endif |
| 20 | |
| 21 | let &cpo = s:save_cpo |
| 22 | unlet s:save_cpo |
| 23 | " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab |