summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-24 17:05:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-24 17:05:34 +0800
commit97513b61fa54fb57195ea867a1fa7cc16d3a8ad3 (patch)
tree48d6733b369090116739788910f1366e8595ac91 /script/parser/guide.lua
parent32db4f5cc960a2ea7b3080c99d7ba2a8aca31171 (diff)
downloadlua-language-server-97513b61fa54fb57195ea867a1fa7cc16d3a8ad3.zip
use diagnostics.globals to get globals
Diffstat (limited to 'script/parser/guide.lua')
-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 feb9e170..8a852109 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -772,6 +772,8 @@ function m.getKeyName(obj)
return 's|' .. obj.alias[1]
elseif tp == 'doc.field' then
return 's|' .. obj.field[1]
+ elseif tp == 'dummy' then
+ return 's|' .. obj[1]
end
return m.getKeyNameOfLiteral(obj)
end