Feb 1, 2008, 2:38 PM
Post #1 of 3
I'd like to remove all the comments from a lua script. There are one line comments marked with double dashes. And block comments that start with double dashes followed by double left square brackets and end with double right square brackets.
Removing comments from LUA scripts
I can remove single line comments by doing:
-- This is a comment.
a = 3; -- This is a comment.
a = 4; --[[ This is
How do I detect beginning of the block comment though?
Regards, Alexander. http://sjcomp.com