diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-07-08 10:03:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-07-08 10:03:41 +0800 |
commit | 5781f2a991da34c47b0b65b3d94b75f96a92c4ca (patch) | |
tree | 196a04e1c5fdc689edac13fdb123e1ec8144956d /server/meta | |
parent | aed744d56a684a2b014e6fcc88ecbdde9833c929 (diff) | |
download | lua-language-server-5781f2a991da34c47b0b65b3d94b75f96a92c4ca.zip |
emmy支持 require 的特殊处理
Diffstat (limited to 'server/meta')
-rw-r--r-- | server/meta/Lua 5.4/basic.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/meta/Lua 5.4/basic.lua b/server/meta/Lua 5.4/basic.lua index 06a5c810..54f74a5c 100644 --- a/server/meta/Lua 5.4/basic.lua +++ b/server/meta/Lua 5.4/basic.lua @@ -134,5 +134,12 @@ end function rawequal(v1, v2) end +--- 加载一个模块,返回该模块的返回值(`nil`时为`true`)。 +---@param modname string {special = 'require:1'} +---@return any +---@return {name = 'loaderdata'} +function require(modname) +end + --- 当前解释器版本号。 _VERSION = 'Lua 5.4' |