blob: c3e5fce5836ec95e96dc67218f21d81e9a15d972 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
if exists('g:loaded_syntastic_beancount_bean_check')
finish
endif
let g:loaded_syntastic_beancount_bean_check=1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_beancount_bean_check_IsAvailable() dict
return executable(self.getExec())
endfunction
function! SyntaxCheckers_beancount_bean_check_GetLocList() dict
let makeprg = self.makeprgBuild({})
return SyntasticMake({ 'makeprg': makeprg })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'beancount',
\ 'name': 'bean_check',
\ 'exec': 'bean-check'})
let &cpo = s:save_cpo
unlet s:save_cpo
|