summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-24 17:30:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-24 17:30:15 +0800
commit9269032792f18b895ae7f8f5950ea5df4284e4a8 (patch)
tree60c28759f61e0fe3bad8389a6e156d8ba71dc576
parent6c934845ad891f2e279ed96ffb0a163994e3729b (diff)
downloadlua-language-server-9269032792f18b895ae7f8f5950ea5df4284e4a8.zip
修复基础库定义
-rw-r--r--meta/template/basic.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index e646d3b8..44f62a46 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -8,6 +8,7 @@ arg = {}
---@generic T
---@param v? T
---@param message? any
+---@param ... any
---@return T
---@return any ...
function assert(v, message, ...) end
@@ -30,6 +31,7 @@ function assert(v, message, ...) end
---#if VERSION >= 5.4 then
---#DES 'collectgarbage'
---@param opt? gcoptions
+---@param ... any
---@return any
function collectgarbage(opt, ...) end
---#else
@@ -136,6 +138,7 @@ function newproxy(proxy) end
---@version 5.1
---#DES 'module'
---@param name string
+---@param ... any
function module(name, ...) end
---#DES 'next'
@@ -161,12 +164,14 @@ function pairs(t) end
---@param f async fun(...):...
---#end
---@param arg1? any
+---@param ... any
---@return boolean success
---@return any result
---@return any ...
function pcall(f, arg1, ...) end
---#DES 'print'
+---@param ... any
function print(...) end
---#DES 'rawequal'
@@ -198,6 +203,7 @@ function rawset(table, index, value) end
---#DES 'select'
---@param index integer|"#"
+---@param ... any
---@return any
---@nodiscard
function select(index, ...) end
@@ -298,6 +304,7 @@ _VERSION = "Lua 5.4"
---@version >5.4
---#DES 'warn'
---@param message string
+---@param ... any
function warn(message, ...) end
---#if VERSION == 5.1 and not JIT then
@@ -313,6 +320,7 @@ function xpcall(f, err) end
---@param f async fun(...):...
---@param msgh function
---@param arg1? any
+---@param ... any
---@return boolean success
---@return any result
---@return any ...