summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-06 15:55:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-06 15:55:15 +0800
commit9a548bbdcfaec6d0d438e447d4f8699ab9b12f19 (patch)
tree77f1dbd9288bb6d7051ace74cd2114681315e0fa /server
parentb2f11cdfc373606c212ec7e17af55a1cbb71acd0 (diff)
downloadlua-language-server-9a548bbdcfaec6d0d438e447d4f8699ab9b12f19.zip
log这个单词也认为已定义
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/diagnostics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua
index 9c2e4efd..e53b4c1d 100644
--- a/server/src/matcher/diagnostics.lua
+++ b/server/src/matcher/diagnostics.lua
@@ -31,7 +31,7 @@ local function searchUndefinedGlobal(results, callback)
then
goto NEXT_VAR
end
- if var.key == 'log' then
+ if var.key:lower() == 'log' then
goto NEXT_VAR
end
if not var.key:find '%l' then