diff --git a/.gitignore b/.gitignore index 3698c0ef..cc07c931 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ *.swp tags +.DS_Store diff --git a/syntax_checkers/less.vim b/syntax_checkers/less.vim index f561fdf6..acc12ef6 100644 --- a/syntax_checkers/less.vim +++ b/syntax_checkers/less.vim @@ -25,7 +25,7 @@ endif function! SyntaxCheckers_less_GetLocList() let makeprg = 'lessc '. g:syntastic_less_options .' '. shellescape(expand('%')) . ' /dev/null' - let errorformat = 'Syntax %trror on line %l in %f,Syntax %trror on line %l,! Syntax %trror: on line %l: %m,%-G%.%#' + let errorformat = 'ParseError:\ Syntax\ Error\ on\ line\ %[0-9]%#\ in\ %f\:%l\:%c, Syntax %trror on line %l in %f,Syntax %trror on line %l,! Syntax %trror: on line %l: %m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, \ 'errorformat': errorformat, \ 'defaults': {'bufnr': bufnr(""), 'text': "Syntax error"} })