runtime(hare): update for Hare 0.25.2
closes: #18222 Signed-off-by: Amelia Clarke <selene@perilune.dev> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6bb16d2cee
commit
6d68508e62
@ -1,29 +1,35 @@
|
||||
" Vim compiler file.
|
||||
" Compiler: Hare
|
||||
" Maintainer: Amelia Clarke <selene@perilune.dev>
|
||||
" Last Change: 2024-05-23
|
||||
" Upstream: https://git.sr.ht/~sircmpwn/hare.vim
|
||||
vim9script
|
||||
|
||||
if exists('current_compiler')
|
||||
# Vim compiler file.
|
||||
# Compiler: Hare
|
||||
# Maintainer: Amelia Clarke <selene@perilune.dev>
|
||||
# Last Change: 2025 Sep 06
|
||||
# Upstream: https://git.sr.ht/~sircmpwn/hare.vim
|
||||
|
||||
if exists('g:current_compiler')
|
||||
finish
|
||||
endif
|
||||
let current_compiler = 'hare'
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
if filereadable('Makefile') || filereadable('makefile')
|
||||
CompilerSet makeprg=make
|
||||
else
|
||||
CompilerSet makeprg=hare\ build
|
||||
const makeprg = 'hare build '
|
||||
.. get(b:, 'hare_makeprg_params', get(g:, 'hare_makeprg_params', '-q'))
|
||||
execute 'CompilerSet makeprg=' .. escape(makeprg, ' "\|')
|
||||
endif
|
||||
|
||||
CompilerSet errorformat=
|
||||
\%f:%l:%c:\ syntax\ error:\ %m,
|
||||
\%f:%l:%c:\ error:\ %m,
|
||||
\%o:%l:%v:\ syntax\ error:\ %m,
|
||||
\%o:%l:%v:\ error:\ %m,
|
||||
\Error:\ %m,
|
||||
\%-G%.%#
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
augroup HareQuickFix
|
||||
autocmd!
|
||||
autocmd QuickFixCmdPost make hare#QuickFixPaths()
|
||||
autocmd QuickFixCmdPost lmake hare#QuickFixPaths()
|
||||
augroup END
|
||||
|
||||
" vim: et sts=2 sw=2 ts=8
|
||||
g:current_compiler = 'hare'
|
||||
|
||||
# vim: et sts=2 sw=2 ts=8 tw=80
|
||||
|
||||
Reference in New Issue
Block a user