hare.vim

[vim] Hare vim plugin
git clone https://git.torresjrjr.com/hare.vim.git
Log | Files | Refs | README | LICENSE

hare.vim (609B)


      1 " Vim compiler file
      2 " Compiler: Hare Compiler
      3 " Maintainer: Amelia Clarke <me@rsaihe.dev>
      4 " Last Change: 2022-09-28
      5 
      6 if exists("g:current_compiler")
      7   finish
      8 endif
      9 let g:current_compiler = "hare"
     10 
     11 let s:cpo_save = &cpo
     12 set cpo&vim
     13 
     14 if exists(':CompilerSet') != 2
     15   command -nargs=* CompilerSet setlocal <args>
     16 endif
     17 
     18 if filereadable("Makefile") || filereadable("makefile")
     19   CompilerSet makeprg=make
     20 else
     21   CompilerSet makeprg=hare\ build
     22 endif
     23 
     24 CompilerSet errorformat=
     25   \%f:%l:%c:\ syntax\ error:\ %m,
     26   \%f:%l:%c:\ error:\ %m,
     27   \%-G%.%#
     28 
     29 let &cpo = s:cpo_save
     30 unlet s:cpo_save
     31 
     32 " vim: et sw=2 sts=2 ts=8