Skip to content

Commit

Permalink
add bufnr and error type to lua syntax checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kongo2002 authored and scrooloose committed Sep 25, 2010
1 parent 53195a4 commit 2e02858
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion syntax_checkers/lua.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ function! SyntaxCheckers_lua_GetLocList()
let makeprg = 'luac -p ' . shellescape(expand('%'))
let errorformat = 'luac: %#%f:%l: %m'

return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

let bn = bufnr('')
for loc in loclist
let loc['bufnr'] = bn
let loc['type'] = 'E'
endfor

return loclist
endfunction

0 comments on commit 2e02858

Please sign in to comment.