ats-vim/syntax_checkers/ats/patscc.vim

26 lines
676 B
VimL
Raw Normal View History

2017-12-23 16:16:43 -05:00
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(),
2017-12-23 16:23:57 -05:00
\ 'args': '-DATS_MEMALLOC_LIBC',
2017-12-23 16:16:43 -05:00
\ 'fname': shellescape(expand('%') )})
2017-12-23 16:24:49 -05:00
let errorformat = '%f:%m'
2017-12-23 16:16:43 -05:00
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
return loclist
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ats',
\ 'name': 'patscc'})