diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-05 18:04:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-05 18:04:27 +0800 |
commit | 61304827140ac8940e74ce9876c772d021cc926a (patch) | |
tree | 32508a8c8b1c1200a3c0629e46af3af59cb1b8fe /script-beta/core/hover/table.lua | |
parent | 14f38cf2671ce044dd2ee752b3d66dbbaf7b83aa (diff) | |
download | lua-language-server-61304827140ac8940e74ce9876c772d021cc926a.zip |
修正报错
Diffstat (limited to 'script-beta/core/hover/table.lua')
-rw-r--r-- | script-beta/core/hover/table.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index dba70860..72af66e7 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -46,6 +46,9 @@ local function mergeLiteral(a, b) return b end local view = util.viewLiteral(a) + if not view then + return b + end if not b then return { view, [view] = true } end |