1
0

Improved the function upvalue situation margially.

This commit is contained in:
Jon Michael Aanes 2017-10-09 14:01:29 +02:00
parent 45d3958e17
commit b62c4c1c6c

View File

@ -361,8 +361,14 @@ return function (value, display, l, format_value)
-- upvalues -- upvalues
if info.nups > 0 and (not info.builtin and not info.docs) then if info.nups > 0 and (not info.builtin and not info.docs) then
l[#l+1] = indent l[#l+1] = indent
l[#l+1] = '-- Up values: ' l[#l+1] = '-- Up values:'
format_value(info.ups, DISPLAY.INLINE, l) 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 end
-- Ignore spacing and function body if it's a Λ string. -- Ignore spacing and function body if it's a Λ string.