5b31495af2
update makeprg builder: * it now accepts `fname`, `tail`, and `post_args` params. * add some doc above syntastic#makeprg#build * update a bunch of checkers to use the new params Still have quite a few checkers that arent using makeprg#build. Including all c* and a few other c-like checkers. And PHP. Not to worried about c* as these checkers are complicated and probably justify having their own logic to build makeprgs.
19 lines
704 B
VimL
19 lines
704 B
VimL
"============================================================================
|
|
"File: typescript.vim
|
|
"Description: TypeScript syntax checker. For TypeScript v0.8.0
|
|
"Maintainer: Bill Casarin <bill@casarin.ca>
|
|
"============================================================================
|
|
|
|
"bail if the user doesnt have tsc installed
|
|
if !executable("tsc")
|
|
finish
|
|
endif
|
|
|
|
function! SyntaxCheckers_typescript_GetLocList()
|
|
let makeprg = syntastic#makeprg#build({
|
|
\ 'exe': 'tsc',
|
|
\ 'post_args': '--out ' . syntastic#util#DevNull() })
|
|
let errorformat = '%f %#(%l\,%c): %m'
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
endfunction
|