fixed problem with parsing optional string arguments

This commit is contained in:
Marc Zinnschlag 2012-03-18 14:27:49 +01:00
parent 100c6a42a5
commit d9677cb33e
3 changed files with 17 additions and 13 deletions

View file

@ -39,6 +39,11 @@ namespace Compiler
mState = CommaState;
return true;
}
else if (code==Scanner::S_newline && mState==StartState)
{
scanner.putbackSpecial (code, loc);
return false;
}
return Parser::parseSpecial (code, loc, scanner);
}