summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-10 20:42:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-10 20:42:31 +0800
commit22abbad5b31c7842054cebc82a66e964c75b2e6e (patch)
treebb5d28d392bcfb9d73f235f5c0ac5313316715e0 /script/core
parentebf15e83ec1d225c392b5c818824339f6cb68a76 (diff)
downloadlua-language-server-22abbad5b31c7842054cebc82a66e964c75b2e6e.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/searcher.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 89bb35d3..feb42223 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -698,7 +698,8 @@ function m.searchRefsByID(status, suri, expect, mode)
end
local function checkBackward(uri, id, field)
- if ignoredIDs[id] then
+ if ignoredIDs[id]
+ or id == 'dn:string' then
return
end
if mode ~= 'ref' and mode ~= 'field' and mode ~= 'allref' and not field then
@@ -796,7 +797,8 @@ function m.searchRefsByID(status, suri, expect, mode)
local crossed = {}
if mode == 'def'
or mode == 'alldef'
- or ignoredIDs[id] then
+ or ignoredIDs[id]
+ or id == 'dn:string' then
for _, guri in ceach('def:' .. id) do
if uri == guri then
goto CONTINUE