From 6fbef6493c8f96044750ffdd1b44a17559cf2b29 Mon Sep 17 00:00:00 2001 From: Bill Casarin Date: Wed, 3 Oct 2012 10:35:07 -0400 Subject: [PATCH] Added initial typescript support --- syntax_checkers/typescript.vim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 syntax_checkers/typescript.vim diff --git a/syntax_checkers/typescript.vim b/syntax_checkers/typescript.vim new file mode 100644 index 00000000..81cac7d0 --- /dev/null +++ b/syntax_checkers/typescript.vim @@ -0,0 +1,20 @@ +"============================================================================ +"File: typescript.vim +"Description: TypeScript syntax checker. For TypeScript v0.8.0 +"Maintainer: Bill Casarin +"============================================================================ +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