From 957f2610312545756f71bc0d08ca151e3efdb061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 6 Aug 2021 16:33:56 +0800 Subject: dont search ref by `@type` --- script/core/searcher.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'script/core') diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 066fb507..8c9f91e2 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -443,7 +443,13 @@ function m.searchRefsByID(status, suri, expect, mode) return end slockMap[uri][id] = true + if sourceUri and uri ~= sourceUri then + footprint(status, 'cross uri:', uri) + end search(uri, id, nil) + if sourceUri and uri ~= sourceUri then + footprint(status, 'back uri:', sourceUri) + end end ---@return parser.guide.object? @@ -771,12 +777,7 @@ function m.searchRefsByID(status, suri, expect, mode) if ssub(id, 1, 3) ~= 'dn:' then return end - local sid = id - if ignoredIDs[id] - or id == 'dn:string' then - sid = 'def:' .. sid - end - for _, guri in ceach(sid) do + for _, guri in ceach('def:' .. id) do if uri ~= guri then searchID(guri, id, field, uri) end -- cgit v1.2.3