summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-23 15:16:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-23 15:16:00 +0800
commit2c7286dbffea7bb33843364c04f79c38b485c51b (patch)
treeaef0b3ac21771a34e0e57d7794739947da12f8ae /script/parser
parenta933f2e79497c357d3b3cc245c4760e83cc82d3b (diff)
downloadlua-language-server-2c7286dbffea7bb33843364c04f79c38b485c51b.zip
fix #1704
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 32f94584..5dee571c 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1008,6 +1008,8 @@ function m.getKeyName(obj)
return obj.field[1]
elseif tp == 'doc.field.name' then
return obj[1]
+ elseif tp == 'doc.type.field' then
+ return m.getKeyName(obj.name)
end
return m.getKeyNameOfLiteral(obj)
end