mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
http://rainmeter.net/forum/viewtopic.php?p=83467
This commit is contained in:
parent
403ce655bc
commit
da34fc1fa8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user