summaryrefslogtreecommitdiff
path: root/server/meta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-27 20:32:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-27 20:32:26 +0800
commit55a2d59934e3389262b4f88af827f92d742b4236 (patch)
tree68b6c1b6779a280fcc73279789f1a81b587c9cec /server/meta
parentee5355bb949ccaa5259602ccf221b4c2b86c28f8 (diff)
downloadlua-language-server-55a2d59934e3389262b4f88af827f92d742b4236.zip
meta应该放到server目录里
Diffstat (limited to 'server/meta')
-rw-r--r--server/meta/Lua 5.4/basic.lua18
-rw-r--r--server/meta/Lua 5.4/meta.lua10
2 files changed, 28 insertions, 0 deletions
diff --git a/server/meta/Lua 5.4/basic.lua b/server/meta/Lua 5.4/basic.lua
new file mode 100644
index 00000000..4651c8b3
--- /dev/null
+++ b/server/meta/Lua 5.4/basic.lua
@@ -0,0 +1,18 @@
+--- 独立版Lua的启动参数。
+arg = {}
+
+--- 如果其参数 `v` 的值为假,它就调用 `error`。
+---@overload fun(v:any):any
+---@param v any
+---@param message any {optional = 'self'}
+---@return any
+function assert(v, message)
+end
+
+---@overload fun()
+---@overload fun(opt:string):any
+---@param opt string {optional = 'after'} | '"collect"' | '"stop"' | '"restart"' | '"count"' | '"step"' | '"setpause"' | '"setstepmul"' | '"incremental"' | '"generational"' | '"isrunning"'
+---@param arg integer {optional = 'self'}
+---@return any
+function collectgarbage(opt, arg)
+end
diff --git a/server/meta/Lua 5.4/meta.lua b/server/meta/Lua 5.4/meta.lua
new file mode 100644
index 00000000..efa4dd08
--- /dev/null
+++ b/server/meta/Lua 5.4/meta.lua
@@ -0,0 +1,10 @@
+---@class any
+---@class string any
+---@class number any
+---@class integer number
+---@class boolean any
+---@class table any
+---@class function any
+---@class nil any
+---@class userdata any
+---@class thread any