diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 15:53:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 15:53:57 +0800 |
commit | b2f11cdfc373606c212ec7e17af55a1cbb71acd0 (patch) | |
tree | cc16aeaa363eb376b5a95425cf72fe437be25cd9 /server/libs/lua53/basic.lni | |
parent | 958080727301e050bdaf1c7a2281b9c9e1988033 (diff) | |
download | lua-language-server-b2f11cdfc373606c212ec7e17af55a1cbb71acd0.zip |
先把所有的基础API都定义一下
Diffstat (limited to 'server/libs/lua53/basic.lni')
-rw-r--r-- | server/libs/lua53/basic.lni | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/server/libs/lua53/basic.lni b/server/libs/lua53/basic.lni new file mode 100644 index 00000000..28b7a66f --- /dev/null +++ b/server/libs/lua53/basic.lni @@ -0,0 +1,65 @@ +[default] +type = 'function' + +[assert] + +[collectgarbage] + +[dofile] + +[error] + +[_G] +type = 'table' + +[getmetatable] + +[ipairs] +[[.args]] +name = 't' +type = 'table' +[[.returns]] +name = 'iterator' +type = 'function' +[[.returns]] +name = 't' +type = 'table' +[[.returns]] +name = 'i' +type = 'number' +default = '0' + +[load] + +[loadfile] + +[next] + +[pairs] + +[pcall] + +[print] + +[rawequal] + +[rawget] + +[rawlen] + +[rawset] + +[select] + +[setmetatable] + +[tonumber] + +[tostring] + +[type] + +[_VERSION] +type = 'string' + +[xpcall] |