diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-09 14:04:36 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-09 14:04:36 +0800 |
commit | 264e332acd1dbfb91c3f6633f6b48f3e4119f832 (patch) | |
tree | 7a5f78d6ed49f07cf1932550964532cccfc3f0ad /server/libs/@lua/basic.lni | |
parent | 96647a35c6977909df5d6c5f7e77d0a4a2dbe2c0 (diff) | |
download | lua-language-server-264e332acd1dbfb91c3f6633f6b48f3e4119f832.zip |
不要加载自定义库中的全局变量
Diffstat (limited to 'server/libs/@lua/basic.lni')
-rw-r--r-- | server/libs/@lua/basic.lni | 564 |
1 files changed, 564 insertions, 0 deletions
diff --git a/server/libs/@lua/basic.lni b/server/libs/@lua/basic.lni new file mode 100644 index 00000000..14c4f669 --- /dev/null +++ b/server/libs/@lua/basic.lni @@ -0,0 +1,564 @@ +<default> +type = 'function' + +[arg] +type = 'table' + +[assert] +[[.args]] +name = 'v' +`````````` +name = 'message' +[[.returns]] + +[collectgarbage] +[[.args]] +name = 'opt' +type = 'string' +optional = 'after' +`````````` +name = 'arg' +type = 'integer' +optional = 'self' +[[.returns]] +[[.enums]] +name = 'opt' +enum = 'collect' +default = true +`````````` +name = 'opt' +enum = 'stop' +`````````` +name = 'opt' +enum = 'restart' +`````````` +name = 'opt' +enum = 'count' +`````````` +name = 'opt' +enum = 'step' +`````````` +name = 'opt' +enum = 'setpause' +`````````` +name = 'opt' +enum = 'setstepmul' +`````````` +name = 'opt' +enum = 'isrunning' + +["collectgarbage Lua 5.4"] +name = 'collectgarbage' +version = 'Lua 5.4' +[[.args]] +name = 'opt' +type = 'string' +optional = 'after' +`````````` +name = 'arg' +type = 'integer' +optional = 'self' +[[.returns]] +[[.enums]] +name = 'opt' +enum = 'collect' +default = true +`````````` +name = 'opt' +enum = 'stop' +`````````` +name = 'opt' +enum = 'restart' +`````````` +name = 'opt' +enum = 'count' +`````````` +name = 'opt' +enum = 'step' +`````````` +name = 'opt' +enum = 'setpause' +`````````` +name = 'opt' +enum = 'setstepmul' +`````````` +name = 'opt' +enum = 'incremental' +`````````` +name = 'opt' +enum = 'generational' +`````````` +name = 'opt' +enum = 'isrunning' + +[dofile] +special = 'dofile' +[[.args]] +name = 'filename' +type = 'string' +optional = 'self' +[[.returns]] + +[error] +[[.args]] +name = 'message' +`````````` +name = 'level' +type = 'integer' +optional = 'self' + +[_G] +type = 'table' + +[getfenv] +version = 'Lua 5.1' +[[.args]] +name = f +type = function +optional = after +default = 1 +[[.returns]] +type = table + +[getmetatable] +[[.args]] +name = 'object' +[[.returns]] +name = 'metatable' +type = 'table' + +[ipairs] +[[.args]] +name = 't' +type = 'table' +[[.returns]] +name = 'iterator' +type = 'function' +args = { + 1 = { + name = 'table', + type = 'table', + }, + 2 = { + name = 'i', + type = 'integer', + } +} +returns = { + 1 = { + name = 'i', + type = 'integer', + }, + 2 = { + name = 'object', + }, +} +`````````` +name = 't' +type = 'table' +`````````` +name = 'i' +type = 'integer' +default = 0 + +[load] +name = 'load' +[[.args]] +name = 'chunk' +type = {'string', 'function'} +`````````` +name = 'chunkname' +type = 'string' +optional = 'after' +`````````` +name = 'mode' +type = 'string' +optional = 'after' +`````````` +name = 'env' +type = 'table' +optional = 'self' +[[.returns]] +type = 'function' +args = { + 1 = { + type = '...' + }, +} +`````````` +name = 'error_message' +type = 'string' +[[.enums]] +name = 'mode' +enum = 'b' +`````````` +name = 'mode' +enum = 't' +`````````` +name = 'mode' +enum = 'bt' +default = true + +['load Lua 5.1'] +name = 'load' +version = {'Lua 5.1'} +[[.args]] +name = 'func' +type = 'function' +`````````` +name = 'chunkname' +type = 'string' +[[.returns]] +type = 'function' +args = { + 1 = { + type = '...' + }, +} +`````````` +name = 'error_message' +type = 'string' + +[loadfile] +special = 'loadfile' +[[.args]] +name = 'filename' +type = 'string' +optional = 'after' +`````````` +name = 'mode' +type = 'string' +optional = 'after' +`````````` +name = 'env' +type = 'table' +optional = 'self' +[[.returns]] +type = 'function' +args = { + 1 = { + type = '...' + }, +} +`````````` +name = 'error_message' +type = 'string' +[[.enums]] +name = 'mode' +enum = 'b' +`````````` +name = 'mode' +enum = 't' +`````````` +name = 'mode' +enum = 'bt' +default = true + +['loadfile Lua 5.1'] +name = 'loadfile' +special = 'loadfile' +version = 'Lua 5.1' +[[.args]] +name = 'filename' +type = 'string' +optional = 'after' +[[.returns]] +type = 'function' +args = { + 1 = { + type = '...' + }, +} +`````````` +name = 'error_message' +type = 'string' + +[loadstring] +version = 'Lua 5.1' +[[.args]] +type = string +````````` +name = chunkname +type = string +optional = after +[[.returns]] +type = 'function' +args = { + 1 = { + type = '...' + }, +} +`````````` +name = 'error_message' +type = 'string' + +[module] +version = 'Lua 5.1' +special = 'module' +[[.args]] +name = name +type = string +`````````` +type = '...' +optional = after + +[next] +[[.args]] +name = 'table' +type = 'table' +`````````` +name = 'index' +optional = 'self' +[[.returns]] +name = 'key' +`````````` +name = 'value' + +[pairs] +[[.args]] +name = 't' +type = 'table' +[[.returns]] +name = 'next' +type = 'function' +args = { + 1 = { + name = 'table', + type = 'table', + }, + 2 = { + name = 'index', + optional = 'self', + }, +} +returns = { + 1 = { + name = 'key', + }, + 2 = { + name = 'value', + }, +} +`````````` +name = 't' +type = 'table' +`````````` +type = 'nil' + +[pcall] +[[.args]] +name = 'f' +type = 'function' +`````````` +name = 'arg1' +optional = 'after' +`````````` +type = '...' +[[.returns]] +name = 'success' +type = 'boolean' +`````````` +name = 'result' +`````````` +type = '...' + +[print] +[[.args]] +type = '...' + +[rawequal] +[[.args]] +name = 'v1' +`````````` +name = 'v2' +[[.returns]] +type = 'boolean' + +[rawget] +special = 'rawget' +[[.args]] +name = 'table' +type = 'table' +`````````` +name = 'index' +[[.returns]] + +[rawlen] +[[.args]] +name = 'v' +type = {'table', 'string'} +[[.returns]] +name = 'len' +type = 'integer' + +[rawset] +special = 'rawset' +[[.args]] +name = 'table' +type = 'table' +`````````` +name = 'index' +`````````` +name = 'value' +[[.returns]] +name = 'table' +type = 'table' + +[select] +[[.args]] +name = 'index' +type = {'string', 'integer'} +`````````` +type = '...' +[[.returns]] +[[.enums]] +name = 'index' +enum = '#' +`````````` +name = 'index' +code = 'integer' + +[setfenv] +version = 'Lua 5.1' +[[.args]] +name = f +type = function/integer +````````` +type = table +[[.returns]] +type = function + +[setmetatable] +special = 'setmetatable' +[[.args]] +name = 'table' +type = 'table' +`````````` +name = 'metatable' +type = 'table' +[[.returns]] +type = 'table' + +[tonumber] +[[.args]] +name = 'e' +type = {'string', 'number'} +`````````` +name = 'base' +type = 'integer' +optional = 'self' +[[.returns]] +type = 'number' + +[tostring] +[[.args]] +name = 'v' +[[.returns]] +type = 'string' + +[type] +[[.args]] +name = 'v' +[[.returns]] +name = 'type' +type = 'string' +[[.enums]] +name = 'type' +enum = 'nil' +`````````` +name = 'type' +enum = 'number' +`````````` +name = 'type' +enum = 'string' +`````````` +name = 'type' +enum = 'boolean' +`````````` +name = 'type' +enum = 'table' +`````````` +name = 'type' +enum = 'function' +`````````` +name = 'type' +enum = 'thread' +`````````` +name = 'type' +enum = 'userdata' + +["_VERSION Lua 5.1"] +version = 'Lua 5.1' +name = '_VERSION' +type = 'string' +value = 'Lua 5.1' + +["_VERSION Lua 5.2"] +version = 'Lua 5.2' +name = '_VERSION' +type = 'string' +value = 'Lua 5.2' + +["_VERSION Lua 5.3"] +version = 'Lua 5.3' +name = '_VERSION' +type = 'string' +value = 'Lua 5.3' + +["_VERSION Lua 5.4"] +version = 'Lua 5.4' +name = '_VERSION' +type = 'string' +value = 'Lua 5.4' + +[warn] +version = 'Lua 5.4' +[[.args]] +name = 'message' +type = 'string' +`````````` +name = 'tocont' +type = 'boolean' +optional = 'after' + +[xpcall] +[[.args]] +name = 'f' +type = 'function' +`````````` +name = 'msgh' +type = 'function' +`````````` +name = 'arg1' +optional = 'after' +`````````` +type = '...' +[[.returns]] +name = 'success' +type = 'boolean' +`````````` +name = 'result' +`````````` +type = '...' + +[require] +special = 'require' +[[.args]] +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' |