From 27a6a7041f01d5f53693901ed9efd898bac31dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 21 Oct 2020 11:10:51 +0800 Subject: =?UTF-8?q?=E6=A0=87=E6=B3=A8=E7=B1=BB=E5=9E=8B=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/parser/guide.lua | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index 4a6ce1cb..ff20ed36 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1408,19 +1408,22 @@ function m.checkSameSimpleByBindDocs(status, obj, start, queue, mode) end end local mark = {} + local newStatus = m.status(status) for _, res in ipairs(results) do - local ref = m.getDocState(res) + local source = m.getDocState(res) + local ref = source.bind if not mark[ref] then mark[ref] = true - if ref.bind then - queue[#queue+1] = { - obj = ref.bind, - start = start, - force = true, - } - end + m.searchRefs(newStatus, ref, mode) end end + for _, res in ipairs(newStatus.results) do + queue[#queue+1] = { + obj = res, + start = start, + force = true, + } + end end function m.checkSameSimpleInArg1OfSetMetaTable(status, obj, start, queue) -- cgit v1.2.3