zig_build.vim (612B)
1 " Vim compiler file 2 " Compiler: Zig Compiler 3 " Upstream: https://github.com/ziglang/zig.vim 4 5 if exists("current_compiler") 6 finish 7 endif 8 let current_compiler = "zig" 9 10 let s:save_cpo = &cpo 11 set cpo&vim 12 13 CompilerSet makeprg=zig\ build\ $* 14 15 " macros: /home/jason/src/my-language/src/main.zig:218:20 16 CompilerSet efm=\ \ \ \ %m:\ %f:%l:%c 17 "/home/jason/src/my-language/src/main.zig:359:22: error: unable to resolve inferred error set 18 CompilerSet efm+=%f:%l:%c:\ %t%*[^:]:\ %m 19 "[matches anything] 20 CompilerSet efm+=%C%m 21 22 let &cpo = s:save_cpo 23 unlet s:save_cpo 24 " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab