diff options
Diffstat (limited to 'server-beta/src/core/hover/label.lua')
-rw-r--r-- | server-beta/src/core/hover/label.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server-beta/src/core/hover/label.lua b/server-beta/src/core/hover/label.lua index a9e7ba13..da8a0c84 100644 --- a/server-beta/src/core/hover/label.lua +++ b/server-beta/src/core/hover/label.lua @@ -6,7 +6,10 @@ local function asFunction(source) local name = buildName(source) local arg = buildArg(source) local rtn = buildReturn(source) - return ('function %s(%s)'):format(name, arg) + local lines = {} + lines[1] = ('function %s(%s)'):format(name, arg) + lines[2] = rtn + return table.concat(lines, '\n') end return function (source) |