Skip to content

Commit

Permalink
fix >= operator not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcoph committed Oct 3, 2023
1 parent ca8f568 commit 1cf9740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexparser/src/m_parser/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ fn relation_expression<'a, 'b>(input: Tokens<'a, 'b>) -> TokResult<'a, 'b, Spann
fold_many0_once(
then(
choice((
to(then(just(Token::Op(">")), just(Token::Op("="))), BinaryOp::GreaterEqual),
to(just(Token::Op("<=")), BinaryOp::LessEqual),
to(just(Token::Op(">")), BinaryOp::Greater),
to(just(Token::Op("<")), BinaryOp::Less),
to(then(just(Token::Op(">")), just(Token::Op("="))), BinaryOp::GreaterEqual),
to(just(Token::Op("<=")), BinaryOp::LessEqual)
)),
binary_or_expression
),
Expand Down

0 comments on commit 1cf9740

Please sign in to comment.