blob: 44014a37754ccf0542514438bfb73a1deec5fabc [file] [log] [blame]
Bram Moolenaar86b48162022-12-06 18:20:10 +00001" Vim compiler file
2" Compiler: Zig Compiler
3" Upstream: https://github.com/ziglang/zig.vim
4
5if exists("current_compiler")
6 finish
7endif
8let current_compiler = "zig"
9
10let s:save_cpo = &cpo
11set cpo&vim
12
Bram Moolenaar86b48162022-12-06 18:20:10 +000013" a subcommand must be provided for the this compiler (test, build-exe, etc)
14if has('patch-7.4.191')
15 CompilerSet makeprg=zig\ \$*\ \%:S
16else
17 CompilerSet makeprg=zig\ \$*\ \"%\"
18endif
19
20" TODO: improve errorformat as needed.
21
22let &cpo = s:save_cpo
23unlet s:save_cpo
24" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab