2022-12-06 18:20:10 +00:00
|
|
|
" Vim compiler file
|
|
|
|
|
" Compiler: Zig Compiler (zig test)
|
|
|
|
|
" Upstream: https://github.com/ziglang/zig.vim
|
2025-11-20 20:54:31 +00:00
|
|
|
" Last Change: 2025 Nov 16 by The Vim Project (set errorformat)
|
2022-12-06 18:20:10 +00:00
|
|
|
|
|
|
|
|
if exists('current_compiler')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
runtime compiler/zig.vim
|
|
|
|
|
let current_compiler = 'zig_test'
|
|
|
|
|
|
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
|
set cpo&vim
|
|
|
|
|
|
2025-11-20 20:54:31 +00:00
|
|
|
CompilerSet makeprg=zig\ test\ \%:S\ \$*
|
|
|
|
|
" CompilerSet errorformat=%f:%l:%c: %t%*[^:]: %m, %f:%l:%c: %m, %f:%l: %m
|
|
|
|
|
CompilerSet errorformat&
|
2022-12-06 18:20:10 +00:00
|
|
|
|
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
|
unlet s:save_cpo
|
|
|
|
|
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab
|