From 17241558816e12332120cb63bb52d98d6fe7f09a Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 19 Jan 2012 19:28:18 +0100 Subject: [PATCH] less: improved errorformat for v1.2 * previous version would skip "NameError" and potentially other errors * introduced support for the capture of the error message --- syntax_checkers/less.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/less.vim b/syntax_checkers/less.vim index 7393b3ef..1338ffda 100644 --- a/syntax_checkers/less.vim +++ b/syntax_checkers/less.vim @@ -27,7 +27,7 @@ function! SyntaxCheckers_less_GetLocList() let makeprg = 'lessc '. g:syntastic_less_options .' '. shellescape(expand('%')) . ' /dev/null' "lessc >= 1.2 - let errorformat = 'ParseError: Syntax Error on line %[0-9]%# in %f:%l:%c' + let errorformat = '%m in %f:%l:%c' "lessc < 1.2 let errorformat .= ', Syntax %trror on line %l in %f,Syntax %trror on line %l,! Syntax %trror: on line %l: %m,%-G%.%#'