summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/duplicate-index.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/duplicate-index.lua')
-rw-r--r--script/core/diagnostics/duplicate-index.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/duplicate-index.lua b/script/core/diagnostics/duplicate-index.lua
index bf46996e..5097ab3a 100644
--- a/script/core/diagnostics/duplicate-index.lua
+++ b/script/core/diagnostics/duplicate-index.lua
@@ -15,8 +15,8 @@ return function (uri, callback)
if obj.type == 'tablefield'
or obj.type == 'tableindex'
or obj.type == 'tableexp' then
- local name = noder.getID(obj)
- if name and name:sub(-1) ~= '*' then
+ local name = guide.getKeyName(obj)
+ if name then
if not mark[name] then
mark[name] = {}
end