From ea6bf371230b12e478139afb3730c7aa9d5edcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 13 Dec 2018 21:02:39 +0800 Subject: =?UTF-8?q?=E6=8E=92=E9=99=A4=E6=8E=89arg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/diagnostics.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/matcher') diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 28a18013..f3aeb9c4 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -28,7 +28,8 @@ local function searchUndefinedGlobal(results, callback) goto NEXT_VAR end if type(index) == 'string' then - if index:lower() == 'log' then + local lIndex = index:lower() + if lIndex == 'log' or lIndex == 'arg' then goto NEXT_VAR end if not index:find '%l' then -- cgit v1.2.3