clisp: some fixes

Add a buffer number to loc list entries.

Match warnings that are for multiple lines.
This commit is contained in:
Martin Grenfell 2013-04-21 18:37:41 +01:00
parent 5859a5bdff
commit dc01f5d69d

View File

@ -21,14 +21,25 @@ endfunction
function! SyntaxCheckers_lisp_clisp_GetLocList()
let makeprg = syntastic#makeprg#build({
\ 'exe': 'clisp',
\ 'args': '-c',
\ 'args': '-q -c',
\ 'tail': '-o /tmp/clisp-vim-compiled-file',
\ 'subchecker': 'clisp' })
let efm = '%-G;%.%#,'
let efm .= '%W%>WARNING:%.%#line %l : %m,%C %#%m,'
let efm .= '%E%>The following functions were %m,%Z %m,'
let efm .= '%W%>WARNING:%.%#line %l : %m,'
let efm .= '%Z %#%m,'
let efm .= '%W%>WARNING:%.%#lines %l..%\d\# : %m,'
let efm .= '%Z %#%m,'
let efm .= '%E%>The following functions were %m,'
let efm .= '%Z %m,'
let efm .= '%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': efm })
return SyntasticMake({ 'makeprg': makeprg,
\ 'errorformat': efm,
\ 'defaults': {'bufnr': bufnr('')} })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({