diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 15:19:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 15:19:41 +0800 |
commit | 3d812e5a70d5f538175e9e7fc5be88acfa8a09bf (patch) | |
tree | 91673700d88fe78a45f737802e2c901033832815 /meta/template/package.lua | |
parent | 5f2a425c2b46550276694db6dcbb28106c6541df (diff) | |
download | lua-language-server-3d812e5a70d5f538175e9e7fc5be88acfa8a09bf.zip |
finish meta locale in zh-CN
Diffstat (limited to 'meta/template/package.lua')
-rw-r--r-- | meta/template/package.lua | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/template/package.lua b/meta/template/package.lua index efe286af..d7c1d262 100644 --- a/meta/template/package.lua +++ b/meta/template/package.lua @@ -3,24 +3,37 @@ ---#DES 'require' ---@param modname string ---@return any +---#if VERSION >=5.4 then ---@return any loaderdata +---#end function require(modname) end +---#DES 'package' ---@class package* ---@field conifg string ---@field cpath string ---@field loaded table ----@field loaders table ---@field path string ---@field preload table ----@field searchers table +---#end package = {} +---@version <5.1 +---#DES 'package.loaders' +package.loaders = {} + +---#DES 'package.loadlib' ---@param libname string ---@param funcname string ---@return any function package.loadlib(libname, funcname) end +---#DES 'package.searchers' +---@version >5.2 +package.searchers = {} + +---#DES 'package.searchpath' +---@version >5.2,JIT ---@param name string ---@param path string ---@param sep? string @@ -29,6 +42,8 @@ function package.loadlib(libname, funcname) end ---@return string? errmsg function package.searchpath(name, path, sep, rep) end +---#DES 'package.seeall' +---@version <5.1 ---@param module table function package.seeall(module) end |