package publish
This commit is contained in:
parent
6201be4087
commit
f0272452e7
1 changed files with 30 additions and 0 deletions
30
syntax_checkers/ats/patscc.vim
Normal file
30
syntax_checkers/ats/patscc.vim
Normal file
|
@ -0,0 +1,30 @@
|
|||
if exists('g:loaded_syntastic_ats_patscc_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_ats_patscc_checker = 1
|
||||
|
||||
let g:syntastic_ats_patscc_exec = 'patscc'
|
||||
|
||||
function! SyntaxCheckers_ats_patscc_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': self.getExec(),
|
||||
\ 'args': '-DATS_MEMALLOC_LIBC -cleanaft',
|
||||
\ 'fname': shellescape(expand('%') )})
|
||||
|
||||
let errorformat =
|
||||
\ '%E%m,' .
|
||||
\ '%C%m' .
|
||||
\ '%Z,'
|
||||
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat })
|
||||
return loclist
|
||||
|
||||
exec '!silent rm -f a.out'
|
||||
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'ats',
|
||||
\ 'name': 'patscc'})
|
Loading…
Reference in a new issue