Skip to content

Commit 8944c51

Browse files
committed
fix runtime error
1 parent 06a7228 commit 8944c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/core/diagnostics/duplicate-doc-alias.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ return function (uri, callback)
4141
end
4242
if #cache[name] > 1 then
4343
callback {
44-
start = doc.alias.start,
45-
finish = doc.alias.finish,
44+
start = (doc.alias or doc.enum).start,
45+
finish = (doc.alias or doc.enum).finish,
4646
related = cache,
4747
message = lang.script('DIAG_DUPLICATE_DOC_ALIAS', name)
4848
}

0 commit comments

Comments
 (0)