From 3d0aca53a30fa55637234685e7825600f42e48c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 15 Jun 2021 17:24:30 +0800 Subject: cleanup --- script/core/searcher.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'script') diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 2097c8fa..52b0b5ea 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -430,7 +430,9 @@ function m.searchRefsByID(status, uri, expect, mode) if field or mode == 'field' then searchID('dn:stringlib', field) end + return true end + return false end local function checkRequire(requireName, field) @@ -509,15 +511,16 @@ function m.searchRefsByID(status, uri, expect, mode) return true end - if node.forward then - checkForward(id, node, field) - end - if node.backward then - checkBackward(id, node, field) + local isSepcial = checkSpecial(id, node, field) + if not isSepcial then + if node.forward then + checkForward(id, node, field) + end + if node.backward then + checkBackward(id, node, field) + end end - checkSpecial(id, node, field) - if node.sources then checkGeneric(node.sources[1], field) checkENV(node.sources[1], field) -- cgit v1.2.3