summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-17 19:27:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-17 19:27:15 +0800
commit07ffe8e3290c5a5768ef2925b440713916a6cd87 (patch)
tree5711f46f9617377faae6ad91b38def7f207caed4 /script
parent096ff4ef464af5eda4a45ad4daec813fd362e532 (diff)
downloadlua-language-server-07ffe8e3290c5a5768ef2925b440713916a6cd87.zip
so easy
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 8df28e7b..c3d4c159 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1625,6 +1625,7 @@ local function compileByGlobal(source)
end
globalNode = vm.createNode(global)
vm.setNode(root._globalBase[name], globalNode, true)
+ vm.setNode(source, globalNode, true)
local sets = global.links[uri].sets or {}
local gets = global.links[uri].gets or {}