summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-17 21:45:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-17 21:45:26 +0800
commit35866009a76991fbf9f110d3ec6071b27b8bc706 (patch)
treec35ffc1b09fbec1aeee068f57bbffc85ad98bb92 /script/parser
parentddb86f9c712bd371f4ee129ecf068ba197e74fc4 (diff)
downloadlua-language-server-35866009a76991fbf9f110d3ec6071b27b8bc706.zip
some fix
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 85bdec27..4535494c 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1010,7 +1010,7 @@ function m.isGlobal(source)
local node = source.node
if node.special == 'rawget'
or node.special == 'rawset' then
- if source.args[1] then
+ if source.args and source.args[1] then
local isGlobal = source.args[1].special == '_G'
source._isGlobal = isGlobal
return isGlobal