ParserMode(i, s)
{ }
-Statement TextParser::parse()
+Statement TextParser::parse(bool)
{
return parse_statement(0);
}
c = in.get();
int next = in.peek();
- if(c=='/' && next=='/')
+ if(c=='/' && next=='/' && !comment)
comment = 1;
- else if(c=='/' && next=='*')
+ else if(c=='/' && next=='*' && !comment)
comment = 2;
else if(c=='\n' && comment==1)
comment = 0;