summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 01:43:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 01:43:10 +0800
commit7822d4f1b38e06eeb1748d12585019b46a2c3c6b (patch)
tree68cbd210ebbdb4a7446bf4106d81a8b45ba95dda
parenteb96b02d0e37bf0bd1da37704089683d200981c3 (diff)
downloadlua-language-server-7822d4f1b38e06eeb1748d12585019b46a2c3c6b.zip
神TM endif
-rw-r--r--meta/template/basic.lua4
-rw-r--r--meta/template/coroutine.lua2
-rw-r--r--meta/template/debug.lua8
-rw-r--r--meta/template/file.lua2
4 files changed, 8 insertions, 8 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index 16c3f46d..4673026a 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -108,7 +108,7 @@ function loadfile(filename) end
---@return function
---@return string error_message
function loadfile(filename, mode, env) end
----#endif
+---#end
---@version 5.1
---#DES 'loadstring'
@@ -251,7 +251,7 @@ function xpcall(f, err) end
---@return any result
---@return ...
function xpcall(f, msgh, arg1, ...) end
----#endif
+---#end
---@version 5.1
---#DES 'unpack'
diff --git a/meta/template/coroutine.lua b/meta/template/coroutine.lua
index 3a10d9dd..e84432db 100644
--- a/meta/template/coroutine.lua
+++ b/meta/template/coroutine.lua
@@ -18,7 +18,7 @@ function coroutine.isyieldable(co) end
---#DES 'coroutine.isyieldable'
---@return boolean
function coroutine.isyieldable() end
----#endif
+---#end
---@version >5.4
---#DES 'coroutine.close'
diff --git a/meta/template/debug.lua b/meta/template/debug.lua
index 6c010c0f..66694d08 100644
--- a/meta/template/debug.lua
+++ b/meta/template/debug.lua
@@ -18,12 +18,12 @@ debug = {}
---#if VERSION >= 5.2 then
---@field nparams integer
---@field isvararg boolean
----#endif
+---#end
---@field func function
---#if VERSION >= 5.4 then
---@field ftransfer integer
---@field ntransfer integer
----#endif
+---#end
---@field activelines table
---#DES 'debug.debug'
@@ -55,7 +55,7 @@ function debug.gethook(co) end
---|+'"f"' # ---#DESENUM 'infowhat.f'
---#if VERSION >= 5.4 then
---|+'"r"' # ---#DESENUM 'infowhat.r'
----#endif
+---#end
---|+'"L"' # ---#DESENUM 'infowhat.L'
---#DES 'debug.getinfo'
@@ -112,7 +112,7 @@ function debug.getuservalue(u, n) end
---@param u userdata
---@return any
function debug.getuservalue(u) end
----#endif
+---#end
---#DES 'debug.setcstacklimit'
---@deprecated
diff --git a/meta/template/file.lua b/meta/template/file.lua
index 7c0d22a6..7becb994 100644
--- a/meta/template/file.lua
+++ b/meta/template/file.lua
@@ -16,7 +16,7 @@ local file = {}
---|>'"*l"' # ---#DESENUM 'readmode.l'
---#if JIT then
---| '"*L"' # ---#DESENUM 'readmode.L'
----#endif
+---#end
---#end
---@alias exitcode | '"exit"'|'"signal"'