diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 17:48:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 17:48:57 +0800 |
commit | 4f33ceec00032028c5cc47a00c1ec869902061a8 (patch) | |
tree | 0fa2b9688bf4b860c78f0832ea5d3938c4aadc89 /server/libs/lua53/basic.lni | |
parent | 8cde753ce395356a87db21221a90de60eb13be5a (diff) | |
download | lua-language-server-4f33ceec00032028c5cc47a00c1ec869902061a8.zip |
支持多类型
Diffstat (limited to 'server/libs/lua53/basic.lni')
-rw-r--r-- | server/libs/lua53/basic.lni | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/server/libs/lua53/basic.lni b/server/libs/lua53/basic.lni index 2b17eb06..3cd943f3 100644 --- a/server/libs/lua53/basic.lni +++ b/server/libs/lua53/basic.lni @@ -63,6 +63,11 @@ optional = 'self' type = 'table' [getmetatable] +[[.args]] +name = 'object' +[[.returns]] +name = 'metatable' +type = 'table' [ipairs] [[.args]] @@ -89,6 +94,35 @@ type = 'integer' default = 0 [load] +[[.args]] +name = 'chunk' +type = {'string', 'function'} +[[.args]] +name = 'chunkname' +type = 'string' +optional = 'after' +[[.args]] +name = 'mode' +type = 'string' +optional = 'after' +[[.args]] +name = 'env' +type = 'table' +optional = 'self' +[[.returns]] +type = 'function' +[[.returns]] +name = 'error_message' +type = 'string' +[[.enums]] +name = 'mode' +enum = 'b' +[[.enums]] +name = 'mode' +enum = 't' +[[.enums]] +name = 'mode' +enum = 'bt' [loadfile] |