From beb03a70df23225b5db7d86f2ea799e33d7dd252 Mon Sep 17 00:00:00 2001 From: Sergio Queiroz Date: Wed, 21 Sep 2016 10:07:34 -0300 Subject: Fixing a bug in lpvm.c (now the tests passed) --- lpvm.c | 4 ++-- relabel.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lpvm.c b/lpvm.c index 44975a1..e8ff287 100644 --- a/lpvm.c +++ b/lpvm.c @@ -360,8 +360,8 @@ const char *match (lua_State *L, const char *o, const char *s, const char *e, stack++; } if (ndyncap > 0) /* is there matchtime captures? */ - ndyncap -= removedyncap(L, capture, stack->caplevel, captop); - captop = stack->caplevel; + ndyncap -= removedyncap(L, capture, pstack->caplevel, captop); + captop = pstack->caplevel; p = pstack->p; continue; } diff --git a/relabel.lua b/relabel.lua index ff2e486..0e7195e 100644 --- a/relabel.lua +++ b/relabel.lua @@ -6,7 +6,7 @@ local pcall = pcall local setmetatable = setmetatable local unpack, tinsert, concat = table.unpack or unpack, table.insert, table.concat local rep = string.rep -local m = require"lpeglabel" +local m = require"lpeglabelrec" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' runs on 'm', creating patterns -- cgit v1.2.3-55-g6feb