blob: 2cc683132956c7cc060e6c457b7c0fabc235f002 [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
13if exists(":CompilerSet") != 2
14 command -nargs=* CompilerSet setlocal <args>
15endif
16
17" a subcommand must be provided for the this compiler (test, build-exe, etc)
18if has('patch-7.4.191')
19 CompilerSet makeprg=zig\ \$*\ \%:S
20else
21 CompilerSet makeprg=zig\ \$*\ \"%\"
22endif
23
24" TODO: improve errorformat as needed.
25
26let &cpo = s:save_cpo
27unlet s:save_cpo
28" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab