Skip to content

Commit c45d862

Browse files
committed
fix semantic
1 parent 8963183 commit c45d862

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

script/core/semantic-tokens.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ local Care = util.switch()
165165
-- 5. Class declaration
166166
-- only search this local
167167
if loc.bindDocs then
168-
for i, doc in ipairs(loc.bindDocs) do
168+
for i = #loc.bindDocs, 1, -1 do
169+
local doc = loc.bindDocs[i]
170+
if doc.type == 'doc.type' then
171+
break
172+
end
169173
if doc.type == "doc.class" and doc.bindSources then
170174
for _, src in ipairs(doc.bindSources) do
171175
if src == loc then

0 commit comments

Comments
 (0)