From 664da61c079f762d835ea6f875cdf3da96982bab Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 23 Jun 2023 14:56:42 -0300 Subject: Copyright notice in module 're' --- re.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 're.lua') diff --git a/re.lua b/re.lua index 5044e9e..1fb9fa9 100644 --- a/re.lua +++ b/re.lua @@ -1,3 +1,7 @@ +-- +-- Copyright 2007-2023, Lua.org & PUC-Rio (see 'lpeg.html' for license) +-- written by Roberto Ierusalimschy +-- -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error @@ -9,14 +13,14 @@ local m = require"lpeg" -- on 'mm' local mm = m --- pattern's metatable +-- patterns' metatable local mt = getmetatable(mm.P(0)) +local version = _VERSION -- No more global accesses after this point -local version = _VERSION -if version == "Lua 5.2" then _ENV = nil end +_ENV = nil -- does no harm in Lua 5.1 local any = m.P(1) -- cgit v1.2.3-55-g6feb