From be2b5b4b55fd4e47cbb5601f3e9b21cc86d74bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 15 May 2021 18:26:48 +0800 Subject: stash --- script/parser/guide.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'script/parser/guide.lua') 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 -- cgit v1.2.3