diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-12 21:16:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-12 21:16:48 +0800 |
commit | 4e52738f7a315085505ffdbefe9ce6722ec3965f (patch) | |
tree | 978b9450f1a8871dbfa538a2b824d289a7a8c234 /meta/template/package.lua | |
parent | e2cd0ad08fdb756f251e3def4a4277d22ba54728 (diff) | |
download | lua-language-server-4e52738f7a315085505ffdbefe9ce6722ec3965f.zip |
暂存
Diffstat (limited to 'meta/template/package.lua')
-rw-r--r-- | meta/template/package.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/template/package.lua b/meta/template/package.lua new file mode 100644 index 00000000..7970e2ca --- /dev/null +++ b/meta/template/package.lua @@ -0,0 +1,25 @@ +---@class package +---@field conifg string +---@field cpath string +---@field loaded table +---@field loaders table +---@field path string +---@field preload table +---@field searchers table +package = {} + +---@param libname string +---@param funcname string +---@return any +function package.loadlib(libname, funcname) end + +---@param name string +---@param path string +---@param sep string? +---@param rep string? +---@return string|nil filename +---@return string errmsg? +function package.searchpath(name, path, sep, rep) end + +---@param module table +function package.seeall(module) end |