From a723536198162aef5297fa7dc05d20597895bda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 24 Dec 2018 13:46:24 +0800 Subject: =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=9B=A0=E4=B8=BA=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=85=A8=E5=B1=80=E5=8F=98=E9=87=8F=E8=80=8C?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/diagnostics.lua | 3 --- server/test/diagnostics/init.lua | 11 ----------- 2 files changed, 14 deletions(-) diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 7871bdca..5e51f9ac 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -37,9 +37,6 @@ local function searchUndefinedGlobal(results, callback) if not index:find '%l' then goto NEXT_VAR end - if #field >= 3 then - goto NEXT_VAR - end for _, info in ipairs(field) do if info.type == 'set' then goto NEXT_VAR diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index fc425e6b..57a54e4d 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -101,17 +101,6 @@ local print(x) ]] -TEST [[ -local x -print(x) -local x -print(x) -local x -print(x) -local x -print(x) -]] - TEST [[ local _ print(_) -- cgit v1.2.3