summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-07 11:05:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-07 11:05:09 +0800
commit285c7a640cd076455b7a04799fe0fbf9f242d129 (patch)
tree376d4931e336bb0ab198ad3feaa8369f7b432871 /server/src/vm
parentaeb55a1183916355774b7843fd6dfb6023567a40 (diff)
downloadlua-language-server-285c7a640cd076455b7a04799fe0fbf9f242d129.zip
更新自动完成
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/vm.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index aa4c6cc9..0b994011 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -57,7 +57,7 @@ function mt:buildTable(source)
tbl:setChild(index, value)
else
if key.type == 'name' then
- key.isIndex = true
+ key:set('table index', true)
tbl:setChild(key[1], value)
end
end
@@ -79,6 +79,7 @@ function mt:buildTable(source)
end
-- 处理写了一半的 key = value,把name类的数组元素视为哈希键
if obj.type == 'name' then
+ obj:set('table index', true)
end
end
end