zig_test.vim 542 B

123456789101112131415161718192021222324
  1. " Vim compiler file
  2. " Compiler: Zig Compiler (zig test)
  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_test'
  10. let s:save_cpo = &cpo
  11. set cpo&vim
  12. if has('patch-7.4.191')
  13. CompilerSet makeprg=zig\ test\ \%:S\ \$*
  14. else
  15. CompilerSet makeprg=zig\ test\ \"%\"\ \$*
  16. endif
  17. let &cpo = s:save_cpo
  18. unlet s:save_cpo
  19. " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab