lua-users home
lua-l archive

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


> I've been thinking about the problem of stripping comments (including long/block comments) from a string containing Lua code.

If you can use an external tool, try my ltokenp, which uses the Lua lexer:
http://lua-users.org/lists/lua-l/2018-07/msg00683.html