diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-08 19:54:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-08 19:54:23 +0800 |
commit | f3ad9225ae04dae2f9ee295709fc623587b1b4e8 (patch) | |
tree | 5ce55049395ba601ef403bf0a36663762314e0a2 /script/parser | |
parent | d4e35887aba9ed3794d5694a19b976eed5a68269 (diff) | |
download | lua-language-server-f3ad9225ae04dae2f9ee295709fc623587b1b4e8.zip |
cleanup
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 6 |
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) |