|
> is there anyone who hash a script (bash or others) that takes a .lua fileThis is hard to do right with regular expressions. Better use the Lua lexer.
> and strips out all the comments (block, multiline, single line) ?
See for instance LuaSrcDiet and my lstrip:
http://luasrcdiet.luaforge.net/
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lstrip