Add missing token loc in parse err msg (#965)

This commit is contained in:
ding-young 2023-09-08 19:12:44 +09:00 committed by GitHub
parent 25e037c50f
commit 2593dcfb79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {