mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
As a matter of caution it sets it to the default gcc errorformat:
```
errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-Gg%\?make[%*\d]: *** [%f:%l:%m,%-Gg%\?make: *** [%f:%l:%m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: Entering directory %*[`']%f',%X%*\a[%*\d]: Leaving directory %*[`']%f',%D%*\a: Entering directory %*[`']%f',%X%*\a: Leaving directory %*[`']%f',%DMaking %*\a in %f,%f|%l| %m
```
so that the compiler keeps working after switching to others.
While likely only a subset is needed; such a subset has been proposed in
a commented errorformat;
checked to work for yamllint but ran out of steam for other compilers;
closes: vim/vim#18754
74b4f9242e
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
22 lines
542 B
VimL
22 lines
542 B
VimL
" Vim compiler file
|
|
" Compiler: Zig Compiler (zig test)
|
|
" Upstream: https://github.com/ziglang/zig.vim
|
|
" Last Change: 2025 Nov 16 by The Vim Project (set errorformat)
|
|
|
|
if exists('current_compiler')
|
|
finish
|
|
endif
|
|
runtime compiler/zig.vim
|
|
let current_compiler = 'zig_test'
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo&vim
|
|
|
|
CompilerSet makeprg=zig\ test\ \%:S\ \$*
|
|
" CompilerSet errorformat=%f:%l:%c: %t%*[^:]: %m, %f:%l:%c: %m, %f:%l: %m
|
|
CompilerSet errorformat&
|
|
|
|
let &cpo = s:save_cpo
|
|
unlet s:save_cpo
|
|
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab
|