[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Wanted: lpeg expert to fix Cosmo
- From: Enrico Tassi <gares@...>
- Date: Thu, 19 Sep 2013 16:54:08 +0200
On Thu, Sep 19, 2013 at 11:36:17AM -0300, Roberto Ierusalimschy wrote:
> A less intrusive change is to change only longstring2 itself:
>
> local longstring2 = lpeg.Cmt(start, function (s, i, start)
> local p = string.gsub(start, "%[", "]")
> local _, e = string.find(s, p, i)
> return (e and e + 1)
> end)
>
> (Many thanks to Tom for doing the hard part.)
Many thanks to both of you!
--
Enrico Tassi