
sjcomp
New User

Feb 1, 2008, 2:38 PM
Post #1 of 3
(1444 views)
|
|
Removing comments from LUA scripts
|
Can't Post
|
|
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.
-- This is a comment. a = 3; -- This is a comment. a = 4; --[[ This is a block comment ]] I can remove single line comments by doing: How do I detect beginning of the block comment though? Thanks. Regards, Alexander. http://sjcomp.com
|