summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/duplicate-doc-alias.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/duplicate-doc-alias.lua b/script/core/diagnostics/duplicate-doc-alias.lua
index e9ee5aab..360358e4 100644
--- a/script/core/diagnostics/duplicate-doc-alias.lua
+++ b/script/core/diagnostics/duplicate-doc-alias.lua
@@ -41,8 +41,8 @@ return function (uri, callback)
end
if #cache[name] > 1 then
callback {
- start = doc.alias.start,
- finish = doc.alias.finish,
+ start = (doc.alias or doc.enum).start,
+ finish = (doc.alias or doc.enum).finish,
related = cache,
message = lang.script('DIAG_DUPLICATE_DOC_ALIAS', name)
}