summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/completion/completion.lua2
-rw-r--r--script/vm/compiler.lua2
2 files changed, 1 insertions, 3 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index 815b00fd..6b63809e 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -1518,8 +1518,6 @@ local function tryArray(state, position, results)
if source.type ~= 'table' and (not source.parent or source.parent.type ~= 'table') then
return
end
- local mark = {}
- local fields = {}
local tbl = source
if source.type ~= 'table' then
tbl = source.parent
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 409b2f47..6238469a 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1285,7 +1285,7 @@ local compilerSwitch = util.switch()
if not guide.isBasicType(pn.name) then
vm.setNode(source, pn)
end
- elseif pn.type == 'doc.type.table' then
+ elseif pn.type == 'doc.type.table' or pn.type == 'doc.type.array' then
vm.setNode(source, pn)
end
end