lua-users home
lua-l archive

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

On 11-05-31 11:55 PM, Daurnimator wrote:
uh, you guys ever seen lpeg.locale?

otherwise common patterns I use:
local eof = P(-1)
local newline = P"\r"^-1 * "\n" --windows new lines too
local emptyline = space^0

I'm a bit mixed up. Are you saying that the locale settings for lpeg would be better for this? Could this not lead to non-portable code as variations of this table would already be in use? I was just thinking about a simple table that had no other purpose, that could be copied and pasted or if a success could be made into a rock.