Skip to content

Commit

Permalink
Add missing token loc in parse err msg (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
ding-young authored Sep 8, 2023
1 parent 25e037c commit 2593dcf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1791,9 +1791,12 @@ impl<'a> Parser<'a> {
| BinaryOperator::Eq
| BinaryOperator::NotEq
) {
return parser_err!(format!(
return parser_err!(
format!(
"Expected one of [=, >, <, =>, =<, !=] as comparison operator, found: {op}"
));
),
tok.location
);
};

Ok(match keyword {
Expand Down

0 comments on commit 2593dcf

Please sign in to comment.