summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-19 18:05:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-19 18:05:53 +0800
commit65566ae751f77fabdd5b7d8aa985c3529d3800df (patch)
tree617a69d4aa1dd3746f1118b3a70a99953cd7b575 /script
parent29a0af6555795bd303928c8667dad02586adfe11 (diff)
parent8760bf99594594e009bc6aa2bb1816eb02fc7006 (diff)
downloadlua-language-server-65566ae751f77fabdd5b7d8aa985c3529d3800df.zip
Merge branch 'bugfix'
Diffstat (limited to 'script')
-rw-r--r--script/core/noder.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 0fc83905..374d2c9b 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1036,7 +1036,8 @@ compileNodeMap = util.switch()
if src.type == 'local'
or src.type == 'tablefield'
or src.type == 'tableindex'
- or src.type == 'setglobal' then
+ or src.type == 'setglobal'
+ or guide.isGlobal(src) then
if src.parent.type ~= 'funcargs'
and not src.dummy then
pushForward(noders, getID(src), id)