From 8929a640a94b68a02cb9867571764f37a19afaef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 29 Nov 2005 17:41:10 +0000 Subject: [PATCH] fix comment --- stepmania/src/LuaManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 7860075dcd..4f40d7acc0 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -251,14 +251,13 @@ void LuaManager::ResetState() void LuaHelpers::PrepareExpression( CString &sInOut ) { - // HACK: Many metrics have "//" comments that Lua fails to parse. + // HACK: Many metrics have "// foo" and "# foo" comments that Lua fails to parse. // Replace them with Lua-style comments. + // XXX: "Foo=Func('#AABBCC')" and "Text=Adjust('// subtitle') aren't comments. sInOut.Replace( "//", "--" ); - - // comment out HTML style color values sInOut.Replace( "#", "--" ); - // Remove leading +, eg. "+50"; Lua doesn't handle that. + // Remove unary +, eg. "+50"; Lua doesn't support that. if( sInOut.size() >= 1 && sInOut[0] == '+' ) sInOut.erase( 0, 1 ); }