summaryrefslogtreecommitdiff
path: root/server/meta/Lua 5.4/basic.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-28 16:21:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-28 16:21:08 +0800
commit12c658d8f569c52e88b09aadbd221387364276f4 (patch)
treec9d917b6ddebdf9443f88a188fa5839d1a243ca7 /server/meta/Lua 5.4/basic.lua
parent9e875d4ea8ac60939f51771485084c539e66e040 (diff)
downloadlua-language-server-12c658d8f569c52e88b09aadbd221387364276f4.zip
允许不占用return
Diffstat (limited to 'server/meta/Lua 5.4/basic.lua')
-rw-r--r--server/meta/Lua 5.4/basic.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/meta/Lua 5.4/basic.lua b/server/meta/Lua 5.4/basic.lua
index 23d87cdb..637d9aec 100644
--- a/server/meta/Lua 5.4/basic.lua
+++ b/server/meta/Lua 5.4/basic.lua
@@ -48,6 +48,9 @@ _G['next'] = next
---|end
---|```
---@param t table
+---@return {name = 'next'}
+---@return table {name = 't'}
+---@return any {name = 'key'}
function pairs(t)
- return next, nil
+ return next, t, nil
end