package publish

This commit is contained in:
Vanessa McHale 2017-12-23 16:29:14 -06:00
parent 47240ada3c
commit a33e64fa53
1 changed files with 11 additions and 3 deletions

View File

@ -5,6 +5,14 @@ let g:loaded_syntastic_ats_patscc_checker = 1
let g:syntastic_ats_patscc_exec = 'patscc' 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 function! SyntaxCheckers_ats_patscc_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'exe': self.getExec(), \ 'exe': self.getExec(),
@ -18,12 +26,12 @@ function! SyntaxCheckers_ats_patscc_GetLocList() dict
let loclist = SyntasticMake({ let loclist = SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat }) \ 'errorformat': errorformat })
return loclist
exec 'silent !rm -f a.out' return loclist
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ats', \ 'filetype': 'ats',
\ 'name': 'patscc'}) \ 'name': 'patscc',
\ 'postprocess': 'Cleanup'})