Additional change to 0b84213, 0d8e8ac

http://rainmeter.net/forum/viewtopic.php?p=83467
This commit is contained in:
spx 2013-02-03 19:31:52 +09:00
parent 403ce655bc
commit da34fc1fa8

View File

@ -609,6 +609,7 @@ Token GetNextToken(Lexer& lexer)
// If the - sign follows a symbol, it is treated as a (negative) number.
lexer.charType = CharType::Symbol;
if (lexer.token == Token::Operator &&
lexer.value.oper != Operator::OpeningBracket && // Special case for e.g. (-PI/2), (-(5)-2).
lexer.value.oper != Operator::ClosingBracket) // Special case for e.g. (5)-2.
{
lexer.charType = CharType::Digit;