add bufnr and error type to lua syntax checker

This commit is contained in:
kongo2002 2010-09-24 22:19:24 +08:00 committed by Martin Grenfell
parent 53195a4ab4
commit 2e028581f0

View File

@ -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