diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-03 17:56:26 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-03 17:56:26 +0800 |
commit | 10aafe270e4a3de3595c002676fc559b78ea3106 (patch) | |
tree | bce78e8bd3004bf8e781e4050084794327da7ffa /server/libs/lua/utf8.lni | |
parent | 98abeeeb92d7437e328004de9335bc2b96d8dbbd (diff) | |
download | lua-language-server-10aafe270e4a3de3595c002676fc559b78ea3106.zip |
部分5.4支持
Diffstat (limited to 'server/libs/lua/utf8.lni')
-rw-r--r-- | server/libs/lua/utf8.lni | 74 |
1 files changed, 74 insertions, 0 deletions
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' <default> +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' |