zig_build.vim 669 B

1234567891011121314151617181920212223242526
  1. " Vim compiler file
  2. " Compiler: Zig Compiler (zig build)
  3. " Upstream: https://github.com/ziglang/zig.vim
  4. " Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
  5. if exists('current_compiler')
  6. finish
  7. endif
  8. runtime compiler/zig.vim
  9. let current_compiler = 'zig_build'
  10. let s:save_cpo = &cpo
  11. set cpo&vim
  12. if exists('g:zig_build_makeprg_params')
  13. execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
  14. else
  15. CompilerSet makeprg=zig\ build\ $*
  16. endif
  17. " TODO: anything to add to errorformat for zig build specifically?
  18. let &cpo = s:save_cpo
  19. unlet s:save_cpo
  20. " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab