summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 18:39:07 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 18:39:07 +0800
commitb468e3bda20b5178faa0bc26b7afd433505cbbb6 (patch)
treebfaada09c5565a15677648fb59a983b5d9343dea /server
parent59649fe8a9733bed0cda3ad999754821b11f3d02 (diff)
downloadlua-language-server-b468e3bda20b5178faa0bc26b7afd433505cbbb6.zip
collectgarbage的新模式
Diffstat (limited to 'server')
-rw-r--r--server/libs/lua/basic.lni44
-rw-r--r--server/locale/en-US/libs/lua/basic.lni42
2 files changed, 86 insertions, 0 deletions
diff --git a/server/libs/lua/basic.lni b/server/libs/lua/basic.lni
index f822588f..d1c272b5 100644
--- a/server/libs/lua/basic.lni
+++ b/server/libs/lua/basic.lni
@@ -47,6 +47,50 @@ enum = 'setstepmul'
name = 'opt'
enum = 'isrunning'
+["collectgarbage Lua 5.4"]
+name = 'collectgarbage'
+version = 'Lua 5.4'
+[[.args]]
+name = 'opt'
+type = 'string'
+optional = 'after'
+``````````
+name = 'arg'
+type = 'integer'
+optional = 'self'
+[[.returns]]
+[[.enums]]
+name = 'opt'
+enum = 'collect'
+default = true
+``````````
+name = 'opt'
+enum = 'stop'
+``````````
+name = 'opt'
+enum = 'restart'
+``````````
+name = 'opt'
+enum = 'count'
+``````````
+name = 'opt'
+enum = 'step'
+``````````
+name = 'opt'
+enum = 'setpause'
+``````````
+name = 'opt'
+enum = 'setstepmul'
+``````````
+name = 'opt'
+enum = 'incremental'
+``````````
+name = 'opt'
+enum = 'generational'
+``````````
+name = 'opt'
+enum = 'isrunning'
+
[dofile]
special = 'dofile'
[[.args]]
diff --git a/server/locale/en-US/libs/lua/basic.lni b/server/locale/en-US/libs/lua/basic.lni
index 4f5afb84..e9d17979 100644
--- a/server/locale/en-US/libs/lua/basic.lni
+++ b/server/locale/en-US/libs/lua/basic.lni
@@ -38,6 +38,48 @@ name = 'opt'
enum = 'isrunning'
description = 'Returns whether the collector is running.'
+["collectgarbage Lua 5.4"]
+[[.enums]]
+name = 'opt'
+enum = 'collect'
+description = 'Performs a full garbage-collection cycle.'
+``````````
+name = 'opt'
+enum = 'stop'
+description = 'Stops automatic execution.'
+``````````
+name = 'opt'
+enum = 'restart'
+description = 'Restarts automatic execution.'
+``````````
+name = 'opt'
+enum = 'count'
+description = 'Returns the total memory in Kbytes.'
+``````````
+name = 'opt'
+enum = 'step'
+description = 'Performs a garbage-collection step.'
+``````````
+name = 'opt'
+enum = 'setpause'
+description = 'Set pause.'
+``````````
+name = 'opt'
+enum = 'setstepmul'
+description = 'Set step multiplier.'
+``````````
+name = 'opt'
+enum = 'incremental'
+description = 'Change the collector mode to incremental.'
+``````````
+name = 'opt'
+enum = 'generational'
+description = 'Change the collector mode to generational.'
+``````````
+name = 'opt'
+enum = 'isrunning'
+description = 'Returns whether the collector is running.'
+
[dofile]
description = 'Opens the named file and executes its contents as a Lua chunk.'