fix master merge

This commit is contained in:
gluax 2021-03-26 12:27:35 -04:00
parent e4d135d2a8
commit 78b4f39b5a

View File

@ -309,7 +309,7 @@ impl ParserContext {
/// Otherwise, tries to parse the next token using [`parse_cast_expression`].
///
pub fn parse_exponential_expression(&mut self) -> SyntaxResult<Expression> {
let mut exprs = vec![self.parse_cast_expression()?];
let mut exprs = vec![];
exprs.push(self.parse_cast_expression()?);
while self.eat(Token::Exp).is_some() {
exprs.push(self.parse_cast_expression()?);