Fix handlebars errorformat.

This commit is contained in:
LCD 47 2013-10-25 16:30:00 +03:00
parent ccef916d48
commit 68b2c651b3

View File

@ -24,15 +24,15 @@ function! SyntaxCheckers_handlebars_handlebars_GetLocList()
\ 'subchecker': 'handlebars' }) \ 'subchecker': 'handlebars' })
let errorformat = let errorformat =
\ 'Error: %m on line %l:,'. \ '%EError: %m on line %l:,'.
\ '%-Z%p^,' . \ "%EError: %m,".
\ "Error: %m,". \ '%Z%p^,' .
\ '%-Z%p^,' . \ '%-G%.%#'
\ '%-G'
return SyntasticMake({ return SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat }) \ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr("")} })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({