From 10aafe270e4a3de3595c002676fc559b78ea3106 Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 3 Apr 2019 17:56:26 +0800 Subject: =?UTF-8?q?=E9=83=A8=E5=88=865.4=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/libs/lua/basic.lni | 16 ++++++++-- server/libs/lua/debug.lni | 29 +++++++++++++++++++ server/libs/lua/utf8.lni | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 3 deletions(-) (limited to 'server/libs/lua') diff --git a/server/libs/lua/basic.lni b/server/libs/lua/basic.lni index a66b703c..f822588f 100644 --- a/server/libs/lua/basic.lni +++ b/server/libs/lua/basic.lni @@ -353,28 +353,38 @@ name = 'type' enum = 'userdata' ["_VERSION Lua 5.1"] +version = 'Lua 5.1' name = '_VERSION' type = 'string' value = 'Lua 5.1' -version = 'Lua 5.1' ["_VERSION Lua 5.2"] +version = 'Lua 5.2' name = '_VERSION' type = 'string' value = 'Lua 5.2' -version = 'Lua 5.2' ["_VERSION Lua 5.3"] +version = 'Lua 5.3' name = '_VERSION' type = 'string' value = 'Lua 5.3' -version = 'Lua 5.3' ["_VERSION Lua 5.4"] +version = 'Lua 5.4' name = '_VERSION' type = 'string' value = 'Lua 5.4' + +[warn] version = 'Lua 5.4' +[[.args]] +name = 'message' +type = 'string' +`````````` +name = 'tocont' +type = 'boolean' +optional = 'after' [xpcall] [[.args]] diff --git a/server/libs/lua/debug.lni b/server/libs/lua/debug.lni index 578b9e9e..d9412e75 100644 --- a/server/libs/lua/debug.lni +++ b/server/libs/lua/debug.lni @@ -113,6 +113,20 @@ name = 'u' type = 'userdata' [[.returns]] +["getuservalue Lua 5.4"] +name = 'getuservalue' +version = 'Lua 5.4' +[[.args]] +name = 'u' +type = 'userdata' +`````````` +name = 'n' +type = 'integer' +[[.returns]] +type = 'any' +`````````` +type = 'boolean' + [sethook] [[.args]] type = 'thread' @@ -184,6 +198,21 @@ name = 'value' name = 'udata' type = 'userdata' +["setuservalue Lua 5.4"] +name = 'setuservalue' +version = 'Lua 5.4' +[[.args]] +name = 'udata' +type = 'userdata' +`````````` +name = 'value' +`````````` +name = 'n' +type = 'integer +[[.returns]] +name = 'udata' +type = 'userdata' + [traceback] [[.args]] type = 'thread' diff --git a/server/libs/lua/utf8.lni b/server/libs/lua/utf8.lni index 0bdc3d52..876fdd9c 100644 --- a/server/libs/lua/utf8.lni +++ b/server/libs/lua/utf8.lni @@ -1,4 +1,5 @@ [utf8] +version = {'Lua 5.3', 'Lua 5.4'} type = 'table' [[.source]] type = 'global' @@ -7,6 +8,7 @@ type = 'library' name = 'utf8' +version = {'Lua 5.3', 'Lua 5.4'} type = 'function' parent = { 1 = { @@ -48,6 +50,28 @@ returns = { } } +["codes Lua 5.4"] +name = 'codes' +version = 'Lua 5.4' +[[.args]] +type = 'string' +`````````` +name = 'lax' +type = 'boolean' +optional = 'after' +[[.returns]] +type = 'function' +returns = { + 1 = { + name = 'p', + type = 'integer', + }, + 2 = { + name = 'c', + type = 'integer', + } +} + [codepoint] [[.args]] type = 'string' @@ -66,6 +90,30 @@ type = 'integer' `````````` type = '...' +["codepoint Lua 5.4"] +name = 'codepoint' +version = 'Lua 5.4' +[[.args]] +type = 'string' +`````````` +name = 'i' +type = 'integer' +optional = 'after' +default = 1 +`````````` +name = 'j' +type = 'integer' +optional = 'after' +`````````` +name = 'lax' +type = 'boolean' +optional = 'after' +[[.returns]] +name = 'code' +type = 'integer' +`````````` +type = '...' + [len] [[.args]] type = 'string' @@ -86,6 +134,32 @@ name = 'errpos' type = 'integer' optional = 'self' +["len Lua 5.4"] +name = 'len' +version = 'Lua 5.4' +[[.args]] +type = 'string' +`````````` +name = 'i' +type = 'integer' +optional = 'after' +default = 1 +`````````` +name = 'j' +type = 'integer' +optional = 'after' +default = -1 +`````````` +name = 'lax' +type = 'boolean' +optional = 'after' +[[.returns]] +type = 'integer' +`````````` +name = 'errpos' +type = 'integer' +optional = 'self' + [offset] [[.args]] type = 'string' -- cgit v1.2.3