add bufnr and error type to lua syntax checker
This commit is contained in:
parent
53195a4ab4
commit
2e028581f0
@ -24,6 +24,14 @@ function! SyntaxCheckers_lua_GetLocList()
|
|||||||
let makeprg = 'luac -p ' . shellescape(expand('%'))
|
let makeprg = 'luac -p ' . shellescape(expand('%'))
|
||||||
let errorformat = 'luac: %#%f:%l: %m'
|
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
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user