summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-25 11:38:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-25 11:38:54 +0800
commit1db38f35caa8352cd2930a71b484a61c61e7252b (patch)
treefb053d163a264d54f69731952ff051323d55ce05
parent26a5138067432428d5a14db625b3589f653fa065 (diff)
downloadlua-language-server-1db38f35caa8352cd2930a71b484a61c61e7252b.zip
允许写入数据
-rw-r--r--server/src/matcher/vm.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index 5f984d6a..fdfeeb21 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -42,10 +42,9 @@ local function readOnly(t)
if type(v) == 'table' then
v = readOnly(v)
end
+ self[k] = v
return v
end,
- __newindex = function (self, k, v)
- end,
__len = function (self)
return #t
end,