From 2fd1b4a7c428326b55a62e932b7d8db9304bcbc0 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 15 Aug 2013 12:23:04 +0300 Subject: [PATCH] Update errorformat for typescript/tsc. --- syntax_checkers/typescript/tsc.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/syntax_checkers/typescript/tsc.vim b/syntax_checkers/typescript/tsc.vim index 78469822..a5587900 100644 --- a/syntax_checkers/typescript/tsc.vim +++ b/syntax_checkers/typescript/tsc.vim @@ -1,6 +1,6 @@ "============================================================================ "File: typescript.vim -"Description: TypeScript syntax checker. For TypeScript v0.8.0 +"Description: TypeScript syntax checker "Maintainer: Bill Casarin "============================================================================ @@ -21,11 +21,17 @@ function! SyntaxCheckers_typescript_tsc_GetLocList() \ 'filetype': 'typescript', \ 'subchecker': 'tsc' }) - let errorformat = '%f %#(%l\,%c): %m' + let errorformat = + \ '%f %#(%l\,%c): error %m,' . + \ '%f %#(%l\,%c): %m,' . + \ '%Eerror %m,' . + \ '%C %m' return SyntasticMake({ \ 'makeprg': makeprg, - \ 'errorformat': errorformat }) + \ 'errorformat': errorformat, + \ 'defaults': {'bufnr': bufnr("")}, + \ 'postprocess': ['sort'] }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({