summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-16 11:29:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-16 11:29:26 +0800
commitc4cf8b5c6b201018b4644b202f9ac987da98a364 (patch)
tree24c2fcdc104306682990d400df0abdc76abb43f1
parentbc46f33475261f06d1576ce5dca9bc753565b64b (diff)
downloadlua-language-server-c4cf8b5c6b201018b4644b202f9ac987da98a364.zip
fix missing global
-rw-r--r--script/parser/guide.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index a6b11744..01a1f2ba 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -714,6 +714,8 @@ function m.getKeyType(obj)
return 'string'
elseif tp == 'doc.field' then
return 'string'
+ elseif tp == 'dummy' then
+ return 'string'
end
return m.getKeyTypeOfLiteral(obj)
end
@@ -781,6 +783,8 @@ function m.getKeyName(obj)
return obj.alias[1]
elseif tp == 'doc.field' then
return obj.field[1]
+ elseif tp == 'dummy' then
+ return obj[1]
end
return m.getKeyNameOfLiteral(obj)
end