summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-08 19:54:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-08 19:54:23 +0800
commitf3ad9225ae04dae2f9ee295709fc623587b1b4e8 (patch)
tree5ce55049395ba601ef403bf0a36663762314e0a2 /script/parser
parentd4e35887aba9ed3794d5694a19b976eed5a68269 (diff)
downloadlua-language-server-f3ad9225ae04dae2f9ee295709fc623587b1b4e8.zip
cleanup
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 206820ef..147e6237 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1009,7 +1009,11 @@ function m.getKeyName(obj)
return obj.enum[1]
elseif tp == 'doc.field' then
return obj.field[1]
- elseif tp == 'doc.field.name' then
+ elseif tp == 'doc.field.name'
+ or tp == 'doc.type.name'
+ or tp == 'doc.class.name'
+ or tp == 'doc.alias.name'
+ or tp == 'doc.enum.name' then
return obj[1]
elseif tp == 'doc.type.field' then
return m.getKeyName(obj.name)