summaryrefslogtreecommitdiff
path: root/server/meta/Lua 5.4
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-27 21:31:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-27 21:31:50 +0800
commit4db019185cc52a046fbc630078bed743b9819144 (patch)
treeb2940b5da0be7f82c7905d7ed27d5f1c25c62791 /server/meta/Lua 5.4
parent92aa3d6c203aef82a57efbe8216830a016db6d5e (diff)
downloadlua-language-server-4db019185cc52a046fbc630078bed743b9819144.zip
hover支持 enum.comment
Diffstat (limited to 'server/meta/Lua 5.4')
-rw-r--r--server/meta/Lua 5.4/basic.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/meta/Lua 5.4/basic.lua b/server/meta/Lua 5.4/basic.lua
index d94a3e10..7da03b4b 100644
--- a/server/meta/Lua 5.4/basic.lua
+++ b/server/meta/Lua 5.4/basic.lua
@@ -12,16 +12,16 @@ end
---@overload fun()
---@overload fun(opt:string):any
---@param opt string {optional = 'after'}
----| '"collect"'
----| '"stop"'
----| '"restart"'
----| '"count"'
----| '"step"'
----| '"setpause"'
----| '"setstepmul"'
----| '"incremental"'
----| '"generational"'
----| '"isrunning"'
+---| '"collect"' {comment = '做一次完整的垃圾收集循环。'}
+---| '"stop"' {comment = '停止垃圾收集器的运行。'}
+---| '"restart"' {comment = '重启垃圾收集器的自动运行。'}
+---| '"count"' {comment = '以 K 字节数为单位返回 Lua 使用的总内存数。'}
+---| '"step"' {comment = '单步运行垃圾收集器。'}
+---| '"setpause"' {comment = '设置收集器的 `间歇率`。'}
+---| '"setstepmul"' {comment = '设置收集器的 `步进倍率`。'}
+---| '"incremental"' {comment = '改变收集器模式为增量模式。'}
+---| '"generational"' {comment = '改变收集器模式为分代模式。'}
+---| '"isrunning"' {comment = '返回表示收集器是否在工作的布尔值。'}
---@param arg integer {optional = 'self'}
---@return any
function collectgarbage(opt, arg)