Skip to content

Commit

Permalink
Forgot formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tartasprint committed Oct 18, 2024
1 parent e264d69 commit c93aae8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meta/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,13 @@ fn left_recursion<'a, 'i: 'a>(rules: HashMap<String, &'a ParserNode<'i>>) -> Vec
None
}
ParserExpr::Seq(ref lhs, ref rhs) => {
if is_non_failing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()]) || is_non_progressing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()]){
if is_non_failing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()])
|| is_non_progressing(
&lhs.expr,
rules,
&mut vec![trace.last().unwrap().clone()],
)
{
check_expr(rhs, rules, trace)
} else {
check_expr(lhs, rules, trace)
Expand Down

0 comments on commit c93aae8

Please sign in to comment.