Skip to content

Commit

Permalink
Fix 1 % 1 being parsed as (1*%)+1
Browse files Browse the repository at this point in the history
Not sure why
  • Loading branch information
probablykasper committed Oct 25, 2024
1 parent 4dd5e91 commit 1c567bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ fn parse_implicit_multiplication(input: &[Token]) -> ParseResult<'_> {
}

fn parse_multiplicative(input: &[Token]) -> ParseResult<'_> {
let (mut res, mut input) = parse_implicit_multiplication(input)?;
let (mut res, mut input) = parse_power(input, true)?;
println!("parse_multiplicative {:?}", input.to_vec());
loop {
if let Ok((term, remaining)) = parse_multiplication_cont(input) {
Expand Down

0 comments on commit 1c567bc

Please sign in to comment.