diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 15:23:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-30 15:23:56 +0800 |
commit | 789cb1598a53c615164a5df7a1c4056f7d4130eb (patch) | |
tree | 34325579c5d4c9c7e2261b332fca2e4d8aa13381 /script | |
parent | 38a2f5ae4e7e5a5ba48289db6a2972e15d3d53cf (diff) | |
download | lua-language-server-789cb1598a53c615164a5df7a1c4056f7d4130eb.zip |
fix
Diffstat (limited to 'script')
-rw-r--r-- | script/core/searcher.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 8e4873aa..68852062 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -820,7 +820,7 @@ function m.searchRefsByID(status, suri, expect, mode) or mode == 'alldef' or field or hasCall(field) then - for _, guri in ceach(uri, 'def:' .. id) do + for _, guri in ceach(suri, 'def:' .. id) do if uri == guri then goto CONTINUE end @@ -829,14 +829,14 @@ function m.searchRefsByID(status, suri, expect, mode) end elseif mode == 'field' or mode == 'allfield' then - for _, guri in ceach(uri, 'def:' .. id) do + for _, guri in ceach(suri, 'def:' .. id) do if uri == guri then goto CONTINUE end searchID(guri, id, field, uri) ::CONTINUE:: end - for _, guri in ceach(uri, 'field:' .. id) do + for _, guri in ceach(suri, 'field:' .. id) do if uri == guri then goto CONTINUE end @@ -844,7 +844,7 @@ function m.searchRefsByID(status, suri, expect, mode) ::CONTINUE:: end else - for _, guri in ceach(uri, id) do + for _, guri in ceach(suri, id) do if crossed[guri] then goto CONTINUE end @@ -872,7 +872,7 @@ function m.searchRefsByID(status, suri, expect, mode) or ignoredIDs[id] or id == 'dn:string' or hasCall(field) then - for _, guri in ceach(uri, 'def:' .. id) do + for _, guri in ceach(suri, 'def:' .. id) do if uri == guri then goto CONTINUE end @@ -880,7 +880,7 @@ function m.searchRefsByID(status, suri, expect, mode) ::CONTINUE:: end else - for _, guri in ceach(uri, id) do + for _, guri in ceach(suri, id) do if crossed[guri] then goto CONTINUE end |