diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 12:26:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 12:26:44 +0800 |
commit | 4f94d3500d6d7b6d082647359011d2ca103741db (patch) | |
tree | 10ab0e987ba03431aacbf0e6f0bebfdeb1d0f456 /server/locale/zh-CN/libs/lua/basic.lni | |
parent | da00d824100381c52a81b9e6f1d824e6b344755d (diff) | |
download | lua-language-server-4f94d3500d6d7b6d082647359011d2ca103741db.zip |
一些API更新与翻译
Diffstat (limited to 'server/locale/zh-CN/libs/lua/basic.lni')
-rw-r--r-- | server/locale/zh-CN/libs/lua/basic.lni | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/server/locale/zh-CN/libs/lua/basic.lni b/server/locale/zh-CN/libs/lua/basic.lni index 40b6bd6c..8d6c25a6 100644 --- a/server/locale/zh-CN/libs/lua/basic.lni +++ b/server/locale/zh-CN/libs/lua/basic.lni @@ -38,6 +38,48 @@ name = 'opt' enum = 'isrunning' description = '返回表示收集器是否在工作的布尔值。' +["collectgarbage Lua 5.4"] +[[.enums]] +name = 'opt' +enum = 'collect' +description = '做一次完整的垃圾收集循环。' +`````````` +name = 'opt' +enum = 'stop' +description = '停止垃圾收集器的运行。' +`````````` +name = 'opt' +enum = 'restart' +description = '重启垃圾收集器的自动运行。' +`````````` +name = 'opt' +enum = 'count' +description = '以 K 字节数为单位返回 Lua 使用的总内存数。' +`````````` +name = 'opt' +enum = 'step' +description = '单步运行垃圾收集器。' +`````````` +name = 'opt' +enum = 'setpause' +description = '设置收集器的 `间歇率`。' +`````````` +name = 'opt' +enum = 'setstepmul' +description = '设置收集器的 `步进倍率`。' +`````````` +name = 'opt' +enum = 'incremental' +description = '改变收集器模式为增量模式。' +`````````` +name = 'opt' +enum = 'generational' +description = '改变收集器模式为分代模式。' +`````````` +name = 'opt' +enum = 'isrunning' +description = '返回表示收集器是否在工作的布尔值。' + [dofile] description = '打开该名字的文件,并执行文件中的 Lua 代码块。' @@ -155,6 +197,9 @@ description = '当前解释器版本号。' ["_VERSION Lua 5.4"] description = '当前解释器版本号。' +[warn] +description = '以给定消息发出一个警告。当`tocont`为 true 时,应当继续调用该函数来接续消息。`tocont`的默认值为 false 。' + [xpcall] description = '传入参数并设置一个消息处理器 `msgh`,以 *保护模式* 调用函数 `f` 。' |