Added initial typescript support
This commit is contained in:
parent
2ad1437af7
commit
6fbef6493c
20
syntax_checkers/typescript.vim
Normal file
20
syntax_checkers/typescript.vim
Normal file
@ -0,0 +1,20 @@
|
||||
"============================================================================
|
||||
"File: typescript.vim
|
||||
"Description: TypeScript syntax checker. For TypeScript v0.8.0
|
||||
"Maintainer: Bill Casarin <bill@casarin.ca>
|
||||
"============================================================================
|
||||
if exists("loaded_typescript_syntax_checker")
|
||||
finish
|
||||
endif
|
||||
let loaded_typescript_syntax_checker = 1
|
||||
|
||||
"bail if the user doesnt have tsc installed
|
||||
if !executable("tsc")
|
||||
finish
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_typescript_GetLocList()
|
||||
let makeprg = 'tsc ' . shellescape(expand("%")) . ' --out /dev/null'
|
||||
let errorformat = '%f (%l\,%c): %m'
|
||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
endfunction
|
Loading…
Reference in New Issue
Block a user