summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-13 18:30:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-06-13 18:30:01 +0800
commit4081b303684b95ec27fd833a1cd10978d4ad5e10 (patch)
treebd286d27d262934d662926247e885b56b72bd489 /script/parser
parentcda4ec3f67a93a907752cc98572f0dac9c5dd83e (diff)
downloadlua-language-server-4081b303684b95ec27fd833a1cd10978d4ad5e10.zip
more smart completion for `continue`
fix #2042
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index e7eb3751..d7399b4d 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -720,7 +720,7 @@ end
--- 遍历所有指定类型的source
---@param ast parser.object
---@param type string
----@param callback fun(src: parser.object)
+---@param callback fun(src: parser.object): any
---@return any
function m.eachSourceType(ast, type, callback)
local cache = getSourceTypeCache(ast)