summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-06 14:51:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-06-06 14:51:17 +0800
commitb9b6d2167107d0f120dba115f858cdb052c42e73 (patch)
tree5fe7114b357aacd449d563aefacdabad9c9e43bb
parenta902fcd20961589355e446a8b7a8d6e351435084 (diff)
downloadlua-language-server-b9b6d2167107d0f120dba115f858cdb052c42e73.zip
update metatable
-rw-r--r--meta/template/basic.lua48
1 files changed, 24 insertions, 24 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index 62ab999e..e646d3b8 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -213,37 +213,37 @@ function setfenv(f, table) end
---@class metatable
---@field __mode 'v'|'k'|'kv'|nil
---@field __metatable any|nil
----@field __tostring fun(t):string|nil
+---@field __tostring (fun(t):string)|nil
---@field __gc fun(t)|nil
----@field __add fun(t1,t2):any|nil
----@field __sub fun(t1,t2):any|nil
----@field __mul fun(t1,t2):any|nil
----@field __div fun(t1,t2):any|nil
----@field __mod fun(t1,t2):any|nil
----@field __pow fun(t1,t2):any|nil
----@field __unm fun(t):any|nil
+---@field __add (fun(t1,t2):any)|nil
+---@field __sub (fun(t1,t2):any)|nil
+---@field __mul (fun(t1,t2):any)|nil
+---@field __div (fun(t1,t2):any)|nil
+---@field __mod (fun(t1,t2):any)|nil
+---@field __pow (fun(t1,t2):any)|nil
+---@field __unm (fun(t):any)|nil
---#if VERSION >= 5.3 then
----@field __idiv fun(t1,t2):any|nil
----@field __band fun(t1,t2):any|nil
----@field __bor fun(t1,t2):any|nil
----@field __bxor fun(t1,t2):any|nil
----@field __bnot fun(t):any|nil
----@field __shl fun(t1,t2):any|nil
----@field __shr fun(t1,t2):any|nil
+---@field __idiv (fun(t1,t2):any)|nil
+---@field __band (fun(t1,t2):any)|nil
+---@field __bor (fun(t1,t2):any)|nil
+---@field __bxor (fun(t1,t2):any)|nil
+---@field __bnot (fun(t):any)|nil
+---@field __shl (fun(t1,t2):any)|nil
+---@field __shr (fun(t1,t2):any)|nil
---#end
----@field __concat fun(t1,t2):any|nil
----@field __len fun(t):integer|nil
----@field __eq fun(t1,t2):boolean|nil
----@field __lt fun(t1,t2):boolean|nil
----@field __le fun(t1,t2):boolean|nil
----@field __index table|fun(t,k)|nil
+---@field __concat (fun(t1,t2):any)|nil
+---@field __len (fun(t):integer)|nil
+---@field __eq (fun(t1,t2):boolean)|nil
+---@field __lt (fun(t1,t2):boolean)|nil
+---@field __le (fun(t1,t2):boolean)|nil
+---@field __index table|(fun(t,k):any)|nil
---@field __newindex table|fun(t,k,v)|nil
----@field __call fun(t,...)|nil
+---@field __call (fun(t,...):...)|nil
---#if VERSION > 5.1 or VERSION == JIT then
----@field __pairs fun(t):fun(t,k,v)|nil
+---@field __pairs (fun(t):(fun(t,k,v):any,any))|nil
---#end
---#if VERSION == JIT or VERSION == 5.2 then
----@field __ipairs fun(t):fun(t,k,v)|nil
+---@field __ipairs (fun(t):(fun(t,k,v):(integer|nil),any))|nil
---#end
---#DES 'setmetatable'