mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
feat(lua): specific error messages for type checking opts
params
This commit is contained in:
@@ -630,7 +630,7 @@ local function process_function(fn)
|
||||
local seterr = ''
|
||||
if string.match(param_type, '^KeyDict_') then
|
||||
write_shifted_output(output, string.format([[
|
||||
%s %s = { 0 }; nlua_pop_keydict(lstate, &%s, %s_get_field, %s&err);]], param_type, cparam, cparam, param_type, extra))
|
||||
%s %s = { 0 }; nlua_pop_keydict(lstate, &%s, %s_get_field, &err_param, &err);]], param_type, cparam, cparam, param_type))
|
||||
cparam = '&'..cparam
|
||||
errshift = 1 -- free incomplete dict on error
|
||||
else
|
||||
|
Reference in New Issue
Block a user