less: improved errorformat for v1.2

* previous version would skip "NameError" and potentially other errors
* introduced support for the capture of the error message
This commit is contained in:
Fabio 2012-01-19 19:28:18 +01:00
parent fe5b8989af
commit 1724155881

View File

@ -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%.%#'