2012-10-03 10:35:07 -04:00
|
|
|
"============================================================================
|
|
|
|
"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()
|
2013-01-20 07:27:19 -05:00
|
|
|
let makeprg = syntastic#makeprg#build({
|
|
|
|
\ 'exe': 'tsc',
|
|
|
|
\ 'post_args': '--out ' . syntastic#util#DevNull() })
|
2012-12-03 04:57:06 -05:00
|
|
|
let errorformat = '%f %#(%l\,%c): %m'
|
2012-10-03 10:35:07 -04:00
|
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
|
|
endfunction
|