summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
authorunknown <sumnekosun@intranet.123u.com>2019-04-01 19:03:42 +0800
committerunknown <sumnekosun@intranet.123u.com>2019-04-01 19:03:42 +0800
commit18f29ff095eaa34ae365afe9a7a74d5d006cc18f (patch)
tree29491ac4bfe9db8ccc068fd031e4a2759cca3f63 /server/src/core
parent0897093f8dafdcf37967aa0a8db2c94d2532a279 (diff)
downloadlua-language-server-18f29ff095eaa34ae365afe9a7a74d5d006cc18f.zip
修正一个报错
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/diagnostics.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index 72bcdbe4..71995167 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -255,6 +255,9 @@ function mt:searchLowercaseGlobal(callback)
if definedGlobal[name] then
return
end
+ if type(name) ~= 'string' then
+ return
+ end
local first = name:match '%w'
if not first then
return