Fix incorrect precedence of pow operator in GDScript
This commit is contained in:
parent
516ec892b4
commit
be8eb6625e
|
@ -3273,7 +3273,7 @@ GDScriptParser::ParseRule *GDScriptParser::get_rule(GDScriptTokenizer::Token::Ty
|
|||
{ &GDScriptParser::parse_unary_operator, &GDScriptParser::parse_binary_operator, PREC_ADDITION_SUBTRACTION }, // PLUS,
|
||||
{ &GDScriptParser::parse_unary_operator, &GDScriptParser::parse_binary_operator, PREC_ADDITION_SUBTRACTION }, // MINUS,
|
||||
{ nullptr, &GDScriptParser::parse_binary_operator, PREC_FACTOR }, // STAR,
|
||||
{ nullptr, &GDScriptParser::parse_binary_operator, PREC_FACTOR }, // STAR_STAR,
|
||||
{ nullptr, &GDScriptParser::parse_binary_operator, PREC_POWER }, // STAR_STAR,
|
||||
{ nullptr, &GDScriptParser::parse_binary_operator, PREC_FACTOR }, // SLASH,
|
||||
{ nullptr, &GDScriptParser::parse_binary_operator, PREC_FACTOR }, // PERCENT,
|
||||
// Assignment
|
||||
|
|
|
@ -1265,6 +1265,7 @@ private:
|
|||
PREC_FACTOR,
|
||||
PREC_SIGN,
|
||||
PREC_BIT_NOT,
|
||||
PREC_POWER,
|
||||
PREC_TYPE_TEST,
|
||||
PREC_AWAIT,
|
||||
PREC_CALL,
|
||||
|
|
Loading…
Reference in New Issue