lua-users home
lua-l archive

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


As noted in the readme for the lexer I think it should handle all syntax but I
might have missed a number format or something. Corrections welcome.

I am having trouble understanding the following. (I don't think it's documented very clearly)

local singlequoted_string = P "'" * ((1 - S "'\r\n\f\\") + (P '\\' * 1)) ^ 0 * "'"

What is the P '\\' * 1 for? Does it match a \ and then any single character?


Thank you Roberto for this most wonderful library!