diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 21:45:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-17 21:45:26 +0800 |
commit | 35866009a76991fbf9f110d3ec6071b27b8bc706 (patch) | |
tree | c35ffc1b09fbec1aeee068f57bbffc85ad98bb92 /script/parser | |
parent | ddb86f9c712bd371f4ee129ecf068ba197e74fc4 (diff) | |
download | lua-language-server-35866009a76991fbf9f110d3ec6071b27b8bc706.zip |
some fix
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 2 |
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 |