From 4db019185cc52a046fbc630078bed743b9819144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 27 Jun 2019 21:31:50 +0800 Subject: =?UTF-8?q?hover=E6=94=AF=E6=8C=81=20enum.comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/meta/Lua 5.4/basic.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'server/meta/Lua 5.4') 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) -- cgit v1.2.3