Improved the function upvalue situation margially.
This commit is contained in:
parent
45d3958e17
commit
b62c4c1c6c
10
function.lua
10
function.lua
|
@ -361,8 +361,14 @@ return function (value, display, l, format_value)
|
|||
-- upvalues
|
||||
if info.nups > 0 and (not info.builtin and not info.docs) then
|
||||
l[#l+1] = indent
|
||||
l[#l+1] = '-- Up values: '
|
||||
format_value(info.ups, DISPLAY.INLINE, l)
|
||||
l[#l+1] = '-- Up values:'
|
||||
for up_name, up_value in pairs(info.ups) do
|
||||
l[#l+1] = indent
|
||||
l[#l+1] = '-- '
|
||||
l[#l+1] = up_name
|
||||
l[#l+1] = ' = '
|
||||
format_value(up_value, DISPLAY.HIDE, l)
|
||||
end
|
||||
end
|
||||
|
||||
-- Ignore spacing and function body if it's a Λ string.
|
||||
|
|
Loading…
Reference in New Issue
Block a user