summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 22:50:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 22:50:39 +0800
commitf629e481de53bbfac24ebae5c952bb80e3300d47 (patch)
tree29be92fae9205ffa97dfc6f1b405f67f4017a574 /script/core/diagnostics
parent28d5a33077b28dcbb52974aaf90125cee013342b (diff)
downloadlua-language-server-f629e481de53bbfac24ebae5c952bb80e3300d47.zip
update
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/assign-type-mismatch.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/diagnostics/assign-type-mismatch.lua b/script/core/diagnostics/assign-type-mismatch.lua
index 30d0f97c..c6a4195c 100644
--- a/script/core/diagnostics/assign-type-mismatch.lua
+++ b/script/core/diagnostics/assign-type-mismatch.lua
@@ -43,7 +43,9 @@ return function (uri, callback)
-- boolean[1] = nil
local tnode = vm.compileNode(source.node)
for n in tnode:eachObject() do
- if n.type == 'doc.type.array' then
+ if n.type == 'doc.type.array'
+ or n.type == 'doc.type.table'
+ or n.type == 'table' then
return
end
end