From af513ff680b0e7ab25ea81aded9049d007ddf035 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 1 Aug 2013 13:50:50 +0300 Subject: [PATCH] Validator checker: check curl return status. --- syntax_checkers/html/validator.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/html/validator.vim b/syntax_checkers/html/validator.vim index e6abf275..04666354 100644 --- a/syntax_checkers/html/validator.vim +++ b/syntax_checkers/html/validator.vim @@ -70,6 +70,7 @@ function! SyntaxCheckers_html_validator_GetLocList() \ (!empty(g:syntastic_html_validator_nsfilter) ? ' -F nsfilter=' . g:syntastic_html_validator_nsfilter : '') . \ ' -F doc=@' . syntastic#util#shexpand('%') . '\;type=text/html\;filename=' . syntastic#util#shexpand('%') . ' ' . \ g:syntastic_html_validator_api + let errorformat = \ '%E"%f":%l: %trror: %m,' . \ '%E"%f":%l-%\d%\+: %trror: %m,' . @@ -83,10 +84,12 @@ function! SyntaxCheckers_html_validator_GetLocList() \ '%W"%f":%l-%\d%\+: info %tarning: %m,' . \ '%W"%f":%l%\%.%c: info %tarning: %m,' . \ '%W"%f":%l%\%.%c-%\d%\+%\%.%\d%\+: info %tarning: %m' + return SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, - \ 'preprocess': 'SyntaxCheckers_html_validator_Preprocess' }) + \ 'preprocess': 'SyntaxCheckers_html_validator_Preprocess', + \ 'returns': [0] }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({