summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-09 12:49:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-09 12:49:35 +0800
commit8983fa79a81e8b05bf8a81c799b71cbf5577ca1d (patch)
tree6ec66e518a829dcb499bff3135d36b7ec824dab7 /script/parser/guide.lua
parent93b2a0384da629c9ce94955cd88e490b6f12dc80 (diff)
downloadlua-language-server-8983fa79a81e8b05bf8a81c799b71cbf5577ca1d.zip
improve memory usage
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index c771ba82..acf996b7 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1121,6 +1121,10 @@ function m.isGlobal(source)
if source._isGlobal ~= nil then
return source._isGlobal
end
+ if source.tag == '_ENV' then
+ source._isGlobal = true
+ return false
+ end
if source.special == '_G' then
source._isGlobal = true
return true