diff options
-rw-r--r-- | server/src/matcher/diagnostics.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 9fc26ada..584a0cb5 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -5,6 +5,7 @@ local function searchUnusedLocals(results, callback) if var.key == 'self' or var.key == '_' or var.key == '_ENV' + or var.key == '' then goto NEXT_VAR end @@ -33,7 +34,7 @@ local function searchUndefinedGlobal(results, callback) goto NEXT_VAR end local lIndex = index:lower() - if lIndex == 'log' or lIndex == 'arg' then + if lIndex == 'log' or lIndex == 'arg' or lIndex == '' then goto NEXT_VAR end if not index:find '%l' then @@ -117,6 +118,7 @@ local function searchRedefinition(results, uri, callback) for _, var in ipairs(results.locals) do if var.key == '_' or var.key == '_ENV' + or var.key == '' then goto NEXT_VAR end |