Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Error format fix for less files
Browse files Browse the repository at this point in the history
Added errorformat because the output of lessc was not correctly
recognized in my system (maybe lessc errors changed in the last update)
  • Loading branch information
Fabio authored and Fabio committed Jan 15, 2012
1 parent 2616623 commit 7e8ab5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion syntax_checkers/less.vim
Expand Up @@ -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"} })
Expand Down

0 comments on commit 7e8ab5f

Please sign in to comment.