From 76e096c151705494ee75ccb3872d15950162f6f5 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 6 Jan 2014 10:41:47 +0200 Subject: [PATCH] Check return in language_check. --- syntax_checkers/text/language_check.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/syntax_checkers/text/language_check.vim b/syntax_checkers/text/language_check.vim index d51cbf20..0656c5ed 100644 --- a/syntax_checkers/text/language_check.vim +++ b/syntax_checkers/text/language_check.vim @@ -19,11 +19,10 @@ function! SyntaxCheckers_text_language_check_GetLocList() dict let errorformat = \ '%f:%l:%c: %m' - let loclist = SyntasticMake({ + return SyntasticMake({ \ 'makeprg': makeprg, - \ 'errorformat': errorformat}) - - return loclist + \ 'errorformat': errorformat, + \ 'returns': [0, 2] }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({