package publish
This commit is contained in:
parent
47240ada3c
commit
a33e64fa53
1 changed files with 11 additions and 3 deletions
|
@ -5,6 +5,14 @@ let g:loaded_syntastic_ats_patscc_checker = 1
|
|||
|
||||
let g:syntastic_ats_patscc_exec = 'patscc'
|
||||
|
||||
function! Cleanup(errors) abort " {{{2
|
||||
|
||||
exec 'silent !rm -f a.out'
|
||||
|
||||
return a:errors
|
||||
|
||||
endfunction " }}}2
|
||||
|
||||
function! SyntaxCheckers_ats_patscc_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': self.getExec(),
|
||||
|
@ -18,12 +26,12 @@ function! SyntaxCheckers_ats_patscc_GetLocList() dict
|
|||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat })
|
||||
return loclist
|
||||
|
||||
exec 'silent !rm -f a.out'
|
||||
return loclist
|
||||
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'ats',
|
||||
\ 'name': 'patscc'})
|
||||
\ 'name': 'patscc',
|
||||
\ 'postprocess': 'Cleanup'})
|
||||
|
|
Loading…
Reference in a new issue