summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-25 15:53:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-25 15:53:52 +0800
commit3d5bd5fc77ce07aeaddf768cbbafd710b783f5de (patch)
treea27a11f0a0124372fc5d67a06db1b70bba4a8a77
parent10f43c44172fc9adc4f6f73a46da250c8c436279 (diff)
downloadlua-language-server-3d5bd5fc77ce07aeaddf768cbbafd710b783f5de.zip
修正bug
-rw-r--r--script-beta/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index f5a0c2c7..31836c6b 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -1230,6 +1230,9 @@ function m.checkSameSimpleInCall(status, ref, start, queue)
end
function m.checkSameSimpleInGlobal(status, name, start, queue)
+ if not name then
+ return
+ end
if not status.interface.global then
return
end