Skip to content

Commit

Permalink
[fix](parser): fix repeat expression parse (#42)
Browse files Browse the repository at this point in the history
Signed-off-by: reilly <tang.ruilin@foxmail.com>
  • Loading branch information
Tangruilin authored Oct 7, 2023
1 parent dca463f commit a0c79ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,6 @@ impl Parser {
let column = self.next_ident()?;
self.next_expected_token(Token::Equal)?;
self.next_token();
let expr = self.parse_expression(Precedence::Lowest)?;
let expr = match self.parse_expression(Precedence::Lowest)? {
Some(e) => e,
None => return Err(Error::ParseErr(fmt_err!("expr can not be none"))),
Expand Down

0 comments on commit a0c79ef

Please sign in to comment.