[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Q] handling 0xC2A0 (space in utf8)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 16 Oct 2008 17:02:33 -0300
> In lua, I have specifed for LPEG the following grammar for space
>
> local space=lpeg.S('\r\n\f\t ')^1
>
> [...]
>
> I am thinking now that this messes up LPeg when trying to match
> for the space. I would like to tell LPeg to also understand
> 0xC2A0 as a space.
local space = (lpeg.S('\r\n\f\t ') + string.char(0xc2, 0xa0))^1
-- Roberto