Commit Graph

7 Commits

Author SHA1 Message Date
Jakub Jirutka
8d78f7271e community/lua-lpeg: install minimal rock_manifest 2017-07-22 20:02:13 +02:00
Jakub Jirutka
f42c67b39d community/lua-lpeg: add -dev subpackage with static libs 2017-05-12 22:23:07 +02:00
Jakub Jirutka
04170b3146 community/lua-lpeg: run tests on check 2017-05-12 22:23:07 +02:00
Roberto Oliveira
a73ecfc233 community/lua-lpeg: update checksum
Review notes by @jirutka:

Upstream has republished the lpeg-1.0.1 tarball with two minor
modifications in file test.lua:

--- old/lpeg-1.0.1/test.lua
+++ new/lpeg-1.0.1/test.lua
@@ -1,6 +1,6 @@
 #!/usr/bin/env lua

--- $Id: test.lua,v 1.111 2016/09/20 17:51:30 roberto Exp $
+-- $Id: test.lua,v 1.112 2017/01/14 18:55:22 roberto Exp $

 -- require"strict"    -- just to be pedantic

@@ -1132,7 +1132,7 @@
 local function manyCmt (n)
     return m.Cmt("a", function ()
              local a = {}; for i = 1, n do a[i] = n - i end
-             return true, table.unpack(a)
+             return true, unpack(a)
            end)
 end

@@ -1147,7 +1147,7 @@

 -- bug in 1.0: problems with math-times returning too many captures
 do
-  local lim = 2^15 - 10
+  local lim = 2^11 - 10
   local res = {m.match(manyCmt(lim), "a")}
   assert(#res == lim and res[1] == lim - 1 and res[lim] == 0)
   checkerr("too many", m.match, manyCmt(2^15), "a")
2017-03-29 12:42:00 +02:00
Jakub Jirutka
491383ece4 community/lua-lpeg: upgrade to 1.0.1 2017-01-14 01:31:49 +01:00
Timo Teräs
a2e061d509 community/[various]: dont set arch in split function 2016-11-02 11:51:56 +02:00
Jakub Jirutka
c01b74be5d community/lua-lpeg: move from testing 2016-09-02 23:25:19 +02:00