catch leading space before comment

issue#70
Houtan Bastani 2013-10-03 10:48:29 +02:00
parent a96d79a3f0
commit bb4ce64add
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ NativeStatement::computingPass()
{
using namespace boost::xpressive;
// Return if this is a comment
sregex comment_expr = sregex::compile( "\%.*" );
sregex comment_expr = sregex::compile( "\\s*\%.*" );
match_results<string::const_iterator> results;
if (regex_match(native_statement, results, comment_expr))
return;