codekingpro/portable-devtools
114k
1" Vim compiler file2" Compiler: Zig Compiler (zig build)3" Upstream: https://github.com/ziglang/zig.vim4" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)5 6if exists('current_compiler')7 finish8endif9runtime compiler/zig.vim10let current_compiler = 'zig_build'11 12let s:save_cpo = &cpo13set cpo&vim14 15if exists('g:zig_build_makeprg_params')16 execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'17else18 CompilerSet makeprg=zig\ build\ $*19endif20 21" TODO: anything to add to errorformat for zig build specifically?22 23let &cpo = s:save_cpo24unlet s:save_cpo25" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab26 