lua-users home
lua-l archive

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


> 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