summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-06 16:00:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-06 16:00:27 +0800
commit0e0421c29ea3c829ef98fc00e890e80666cece73 (patch)
treef2877cdd2cc28265032cf920b7a87cfd1076c74c /script/parser/compile.lua
parentbd1196c1b2f6c0722deb765359e5a0702c31644c (diff)
downloadlua-language-server-0e0421c29ea3c829ef98fc00e890e80666cece73.zip
fix #490
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index 04fc19c7..a7e0dc1f 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -90,8 +90,10 @@ local vmMap = {
end
newNode.mirror = obj.node.node
newNode.dummy = true
+ newNode.parent = obj.args
obj.node.node.mirror = newNode
tableInsert(obj.args, 1, newNode)
+ Compiled[newNode] = true
end
Compile(obj.args, obj)
end,