diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-09 10:26:07 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-09 10:26:07 +0800 |
commit | b9ef666714e03e2108f4b1f8c245e721dc4fb2fb (patch) | |
tree | 59f0acf90e62fb6ad6173a42d32764b79231ea26 /server/libs | |
parent | fd11589c1d5d32f85a9879fa008cb6b10798409a (diff) | |
download | lua-language-server-b9ef666714e03e2108f4b1f8c245e721dc4fb2fb.zip |
其他差异
Diffstat (limited to 'server/libs')
-rw-r--r-- | server/libs/lua/basic.lni | 15 | ||||
-rw-r--r-- | server/libs/lua/os.lni | 12 | ||||
-rw-r--r-- | server/libs/lua/package.lni | 5 | ||||
-rw-r--r-- | server/libs/lua/table.lni | 9 |
4 files changed, 41 insertions, 0 deletions
diff --git a/server/libs/lua/basic.lni b/server/libs/lua/basic.lni index 51c6fb03..a1463c00 100644 --- a/server/libs/lua/basic.lni +++ b/server/libs/lua/basic.lni @@ -544,3 +544,18 @@ special = 'require' name = 'modname' type = 'string' [[.returns]] + +[unpack] +version = {'Lua 5.1'} +[[.args]] +name = 'list' +type = 'table' +`````````` +name = 'i' +type = 'integer' +optional = 'after' +type = 1 +`````````` +name = 'j' +type = 'integer' +optional = 'self' diff --git a/server/libs/lua/os.lni b/server/libs/lua/os.lni index 9e92de66..64d5f1c9 100644 --- a/server/libs/lua/os.lni +++ b/server/libs/lua/os.lni @@ -60,6 +60,7 @@ name = 'type' type = 'string' `````````` name = 'code' +type = 'integer' [[.enums]] type = 'type' enum = 'exit' @@ -67,6 +68,17 @@ enum = 'exit' type = 'type' enum = 'signal' +['execute Lua 5.1'] +name = 'execute' +version = 'Lua 5.1' +[[.args]] +name = 'command' +type = 'string' +optional = 'self' +[[.returns]] +name = 'code' +type = 'integer' + [exit] [[.args]] name = 'code' diff --git a/server/libs/lua/package.lni b/server/libs/lua/package.lni index a0843cae..85234fab 100644 --- a/server/libs/lua/package.lni +++ b/server/libs/lua/package.lni @@ -28,6 +28,10 @@ type = 'string' [loaded] type = 'table' +[loaders] +version = {'Lua 5.1'} +type = 'table' + [loadlib] [[.args]] name = 'libname' @@ -44,6 +48,7 @@ type = 'string' type = 'table' [searchers] +version = {'Lua 5.2', 'Lua 5.3', 'Lua 5.4'} type = 'table' [searchpath] diff --git a/server/libs/lua/table.lni b/server/libs/lua/table.lni index 5266cb41..c48417c3 100644 --- a/server/libs/lua/table.lni +++ b/server/libs/lua/table.lni @@ -52,6 +52,13 @@ optional = 'self' name = 'value' type = 'any' +[maxn] +version = {'Lua 5.1'} +[[.args]] +type = table +[[.returns]] +type = integer + [move] version = {'Lua 5.3', 'Lua 5.4'} [[.args]] @@ -75,6 +82,7 @@ name = 'a2' type = 'table' [pack] +version = {'Lua 5.2', 'Lua 5.3', 'Lua 5.4'} [[.args]] type = '...' [[.returns]] @@ -100,6 +108,7 @@ type = 'function' optional = 'self' [unpack] +version = {'Lua 5.2', 'Lua 5.3', 'Lua 5.4'} [[.args]] name = 'list' type = 'table' |