6a184f0e37
Make all the easy updates. There are still quite a few to do, but in doing these ones I can see that syntastic#makeprg#build() needs to accept a few more options. Namely: * "postargs" that appear after the filename * "tail" that appears after everything - used for things like redirecting output and piping to grep/sed/etc * the filename itself - only the java checkers needed this since they specify the directory of the file to check as well There are still a few other things to do as well: * remove the options from the checkers that are now provided by syntastic#makeprg#build implicitly - i.e. the checker exe and args. * also, we need to doc the above implicit checker options
18 lines
674 B
VimL
18 lines
674 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' })
|
|
let makeprg .= ' --out ' . syntastic#util#DevNull()
|
|
let errorformat = '%f %#(%l\,%c): %m'
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
endfunction
|