summaryrefslogtreecommitdiff
path: root/meta/template
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-08 15:01:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-08 15:01:48 +0800
commit5fd1d62add115ba4a77236e927f87359e4f37018 (patch)
tree1fb894f985d703a1caf06c6b80d6bad6c9a8e642 /meta/template
parent8c1e542ef0dd163e8b2ba0b2b6d69950bd270a0b (diff)
downloadlua-language-server-5fd1d62add115ba4a77236e927f87359e4f37018.zip
fix wrong diagnostics for `pcall` and `xpcall`
Diffstat (limited to 'meta/template')
-rw-r--r--meta/template/basic.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index 262075c7..b3eec153 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -158,7 +158,7 @@ function pairs(t) end
---#if VERSION == 5.1 and not JIT then
---@param f function
---#else
----@param f async fun()
+---@param f async fun(...):...
---#end
---@param arg1? any
---@return boolean success
@@ -273,7 +273,7 @@ function warn(message, ...) end
function xpcall(f, err) end
---#else
---#DES 'xpcall>5.2'
----@param f async fun()
+---@param f async fun(...):...
---@param msgh function
---@param arg1? any
---@return boolean success