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({