summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-21 15:00:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-21 15:00:00 +0800
commit9daa1488b1e97b6a638fdbfe1b145db27f6b7de3 (patch)
treea24545f61d461bb7fc273122504fccc209a9d89e
parent0169983a752d55e2dc995b88b72badc74aa0f0ab (diff)
downloadlua-language-server-9daa1488b1e97b6a638fdbfe1b145db27f6b7de3.zip
fix
-rw-r--r--script/parser/compile.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index ccbeeed7..e1e07c54 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -460,9 +460,9 @@ local vmMap = {
function CompileBlock(obj, parent)
for i = 1, #obj do
local act = obj[i]
+ act.parent = parent
local f = vmMap[act.type]
if f then
- act.parent = parent
f(act)
end
end