zig_test.vim 548 B

12345678910111213141516171819202122232425262728
  1. " Vim compiler file
  2. " Compiler: Zig Compiler (zig test)
  3. " Upstream: https://github.com/ziglang/zig.vim
  4. if exists('current_compiler')
  5. finish
  6. endif
  7. runtime compiler/zig.vim
  8. let current_compiler = 'zig_test'
  9. let s:save_cpo = &cpo
  10. set cpo&vim
  11. if exists(':CompilerSet') != 2
  12. command -nargs=* CompilerSet setlocal <args>
  13. endif
  14. if has('patch-7.4.191')
  15. CompilerSet makeprg=zig\ test\ \%:S\ \$*
  16. else
  17. CompilerSet makeprg=zig\ test\ \"%\"\ \$*
  18. endif
  19. let &cpo = s:save_cpo
  20. unlet s:save_cpo
  21. " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab