summaryrefslogtreecommitdiff
path: root/server/src/matcher/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-05 17:26:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-05 17:26:22 +0800
commit3fbeac740ba3f2839c6ac62373bfeb1f7b1ea32c (patch)
tree5abf6d724e4b42d3040d786f00dc4b53e2c99c34 /server/src/matcher/compile.lua
parent3221c785e48107a6199fa601f3f44ffaf8d6e8f9 (diff)
downloadlua-language-server-3fbeac740ba3f2839c6ac62373bfeb1f7b1ea32c.zip
修正一个BUG
Diffstat (limited to 'server/src/matcher/compile.lua')
-rw-r--r--server/src/matcher/compile.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua
index 4e0018a9..910aa357 100644
--- a/server/src/matcher/compile.lua
+++ b/server/src/matcher/compile.lua
@@ -232,6 +232,9 @@ function mt:setTable(var, tbl, mode)
return
end
var.childs = tbl.childs
+ for _, child in pairs(tbl.childs) do
+ child.parent = var
+ end
end
function mt:setMeta(var, meta)