2024-05-25 16:11:50 -07:00
|
|
|
" Vim compiler file.
|
|
|
|
" Compiler: Hare
|
|
|
|
" Maintainer: Amelia Clarke <selene@perilune.dev>
|
|
|
|
" Last Change: 2024-05-23
|
|
|
|
" Upstream: https://git.sr.ht/~sircmpwn/hare.vim
|
2022-09-28 03:48:36 -07:00
|
|
|
|
2024-05-25 16:11:50 -07:00
|
|
|
if exists('current_compiler')
|
2022-09-28 03:48:36 -07:00
|
|
|
finish
|
|
|
|
endif
|
2024-05-25 16:11:50 -07:00
|
|
|
let current_compiler = 'hare'
|
2022-09-28 03:48:36 -07:00
|
|
|
|
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
2024-05-25 16:11:50 -07:00
|
|
|
if filereadable('Makefile') || filereadable('makefile')
|
2022-09-28 03:48:36 -07:00
|
|
|
CompilerSet makeprg=make
|
|
|
|
else
|
|
|
|
CompilerSet makeprg=hare\ build
|
|
|
|
endif
|
|
|
|
|
|
|
|
CompilerSet errorformat=
|
2024-05-25 16:11:50 -07:00
|
|
|
\%f:%l:%c:\ syntax\ error:\ %m,
|
|
|
|
\%f:%l:%c:\ error:\ %m,
|
2022-09-28 03:48:36 -07:00
|
|
|
\%-G%.%#
|
|
|
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|
2024-05-25 16:11:50 -07:00
|
|
|
|
|
|
|
" vim: et sts=2 sw=2 ts=8
|