From b3a94c59e0e6454d1b978ed541e8d7ccb855c3a7 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 16 Apr 2019 15:35:18 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=20relabel=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=20Lua=20=E7=89=88=E6=9C=AC=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/relabel.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server/src') diff --git a/server/src/parser/relabel.lua b/server/src/parser/relabel.lua index bc832017..ac902403 100644 --- a/server/src/parser/relabel.lua +++ b/server/src/parser/relabel.lua @@ -19,8 +19,7 @@ local mt = getmetatable(mm.P(0)) -- No more global accesses after this point -local version = _VERSION -if version == "Lua 5.2" then _ENV = nil end +_ENV = nil local any = m.P(1) @@ -359,6 +358,4 @@ local re = { calcline = calcline } -if version == "Lua 5.1" then _G.re = re end - return re -- cgit v1.2.3