From e9728bdbafa7d93bf1f017ab5835ad84890604fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 21 Oct 2019 21:51:09 +0800 Subject: =?UTF-8?q?#101=20=E5=9C=A8=E5=A4=9A=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E5=89=8D=E9=9D=A2=E5=8A=A0=E4=B8=8A=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/hover/emmy_function.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server/src/core/hover/emmy_function.lua') diff --git a/server/src/core/hover/emmy_function.lua b/server/src/core/hover/emmy_function.lua index 37b44a79..7c87954e 100644 --- a/server/src/core/hover/emmy_function.lua +++ b/server/src/core/hover/emmy_function.lua @@ -47,13 +47,18 @@ end local function buildEmmyReturns(emmy) local rtns = {} + local i = 0 emmy:eachReturn(function (rtn) + i = i + 1 + if i > 1 then + rtns[#rtns+1] = ('\n% 3d. '):format(i) + end rtns[#rtns+1] = rtn:getType() end) if #rtns == 0 then return '\n -> ' .. 'any' else - return '\n -> ' .. table.concat(rtns, ', ') + return '\n -> ' .. table.concat(rtns) end end -- cgit v1.2.3