removed a redundant else and made unary + work also in the console

This commit is contained in:
Marc Zinnschlag 2015-09-26 11:30:35 +02:00
parent 2158bfe285
commit ae54f34f25
2 changed files with 5 additions and 3 deletions

View file

@ -555,7 +555,7 @@ namespace Compiler
}
if (mAllowExpression && mState==BeginState &&
(code==Scanner::S_open || code==Scanner::S_minus))
(code==Scanner::S_open || code==Scanner::S_minus || code==Scanner::S_plus))
{
scanner.putbackSpecial (code, loc);
parseExpression (scanner, loc);