summaryrefslogtreecommitdiff
path: root/meta/template/package.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 16:31:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 16:31:21 +0800
commit57e4aa220078222cde843af7ebaea4b839a6cec3 (patch)
tree6999f87ae5c3f75353508a968687cc4d2625effa /meta/template/package.lua
parent798e296e3fe7f726c83cfba9017893da86bdd5ce (diff)
downloadlua-language-server-57e4aa220078222cde843af7ebaea4b839a6cec3.zip
some fixs
Diffstat (limited to 'meta/template/package.lua')
-rw-r--r--meta/template/package.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/template/package.lua b/meta/template/package.lua
index d7c1d262..600a2f4c 100644
--- a/meta/template/package.lua
+++ b/meta/template/package.lua
@@ -1,12 +1,17 @@
---@meta
----#DES 'require'
+---#if VERSION >=5.4 then
+---#DES 'require>5.4'
---@param modname string
---@return any
----#if VERSION >=5.4 then
---@return any loaderdata
----#end
function require(modname) end
+---#else
+---#DES 'require<5.3'
+---@param modname string
+---@return any
+function require(modname) end
+---#end
---#DES 'package'
---@class package*
@@ -15,7 +20,6 @@ function require(modname) end
---@field loaded table
---@field path string
---@field preload table
----#end
package = {}
---@version <5.1