summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-15 18:26:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-15 18:26:48 +0800
commitbe2b5b4b55fd4e47cbb5601f3e9b21cc86d74bc1 (patch)
tree03ea4d53e4373fd3c5cb2a9fe62825d0f53bf9a2 /script/parser/guide.lua
parent43fdd200c89cc4356e50ccf4bd4f4a94bc1ae701 (diff)
downloadlua-language-server-be2b5b4b55fd4e47cbb5601f3e9b21cc86d74bc1.zip
stash
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 7fc5e3b8..5de14856 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -565,9 +565,16 @@ function m.eachSource(ast, callback)
index = index + 1
if not mark[obj] then
mark[obj] = true
- callback(obj)
+ local res = callback(obj)
+ if res == true then
+ goto CONTINUE
+ end
+ if res == false then
+ return
+ end
m.addChilds(list, obj, m.childMap)
end
+ ::CONTINUE::
end
end