aboutsummaryrefslogtreecommitdiffstats
path: root/compiler/beancount.vim
blob: 5bcaa15b451fce31d6a461c746292160d4fd2747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if exists("current_compiler")
    finish
endif
let current_compiler = "beancount"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo-=C

CompilerSet makeprg=bean-check\ %
CompilerSet errorformat=%-G         " Skip blank lines
CompilerSet errorformat+=%f:%l:\ %m  " File:line: message
CompilerSet errorformat+=%-G\ %.%#   " Skip indented lines.

let &cpo = s:cpo_save
unlet s:cpo_save