diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 18:14:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-14 18:14:23 +0800 |
commit | b25fe0dcbf3b06534d170caa294a5245273ea076 (patch) | |
tree | 325db05999037fa608df55b83c728e27549c011c /server/libs | |
parent | 4f33ceec00032028c5cc47a00c1ec869902061a8 (diff) | |
download | lua-language-server-b25fe0dcbf3b06534d170caa294a5245273ea076.zip |
更新配置
Diffstat (limited to 'server/libs')
-rw-r--r-- | server/libs/lua53/basic.lni | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/server/libs/lua53/basic.lni b/server/libs/lua53/basic.lni index 3cd943f3..09092026 100644 --- a/server/libs/lua53/basic.lni +++ b/server/libs/lua53/basic.lni @@ -125,8 +125,44 @@ name = 'mode' enum = 'bt' [loadfile] +[[.args]] +name = 'filename' +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' [next] +[[.args]] +name = 'table' +type = 'table' +[[.args]] +name = 'index' +optional = 'self' +[[.returns]] +name = 'key' +[[.returns]] +name = 'value' [pairs] [[.args]] @@ -140,17 +176,31 @@ returns = { name = 'key', }, 2 = { - name = 'object', + name = 'value', }, } [[.returns]] name = 't' type = 'table' [[.returns]] -name = 'nil' type = 'nil' [pcall] +[[.args]] +name = 'f' +type = 'function' +[[.args]] +name = 'arg1' +optional = 'after' +[[.args]] +type = '...' +[[.returns]] +name = 'success' +type = 'boolean' +[[.returns]] +name = 'result' +[[.returns]] +type = '...' [print] |