Skip to content

Commit

Permalink
clisp: some fixes
Browse files Browse the repository at this point in the history
Add a buffer number to loc list entries.

Match warnings that are for multiple lines.
  • Loading branch information
scrooloose committed Apr 21, 2013
1 parent 5859a5b commit dc01f5d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions syntax_checkers/lisp/clisp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit dc01f5d

Please sign in to comment.