Hi,
As noted in the readme for the lexer I think it should handle all syntax but II 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 * "'"might have missed a number format or something. Corrections welcome.
What is the P '\\' * 1 for? Does it match a \ and then any single character? Thanks, -Mitchell;
Thank you Roberto for this most wonderful library! [1] http://xolox.ath.cx/lua/lexer.html [2] http://xolox.ath.cx/lua/highlighter.html [3] http://lua-users.org/wiki/LpegRecipes