zig.vim 530 B

12345678910111213141516171819202122232425
  1. " Vim compiler file
  2. " Compiler: Zig Compiler
  3. " Upstream: https://github.com/ziglang/zig.vim
  4. if exists("current_compiler")
  5. finish
  6. endif
  7. let current_compiler = "zig"
  8. let s:save_cpo = &cpo
  9. set cpo&vim
  10. " a subcommand must be provided for the this compiler (test, build-exe, etc)
  11. if has('patch-7.4.191')
  12. CompilerSet makeprg=zig\ \$*\ \%:S
  13. else
  14. CompilerSet makeprg=zig\ \$*\ \"%\"
  15. endif
  16. " TODO: improve errorformat as needed.
  17. let &cpo = s:save_cpo
  18. unlet s:save_cpo
  19. " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab