diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-16 11:29:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-16 11:29:26 +0800 |
commit | c4cf8b5c6b201018b4644b202f9ac987da98a364 (patch) | |
tree | 24c2fcdc104306682990d400df0abdc76abb43f1 | |
parent | bc46f33475261f06d1576ce5dca9bc753565b64b (diff) | |
download | lua-language-server-c4cf8b5c6b201018b4644b202f9ac987da98a364.zip |
fix missing global
-rw-r--r-- | script/parser/guide.lua | 4 |
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 |