lua-users home
lua-l archive

Re: Wanted: lpeg expert to fix Cosmo

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /