Skip to content

Commit

Permalink
unfortunately this still doesn't parse the sample files, in fact it s…
Browse files Browse the repository at this point in the history
…eems to have no effect to change the separator parser.
  • Loading branch information
Lokathor committed Oct 17, 2024
1 parent 1b976c8 commit 1963251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Statement {
inner_self
.clone()
.map_with(|statement, ex| (statement, ex.span()))
.separated_by(line_sep)
.separated_by(line_sep.repeated().at_least(1).ignored())
.allow_leading()
.allow_trailing()
.collect::<Vec<_>>()
Expand All @@ -144,7 +144,7 @@ impl Statement {
}
}),
)
.map(|body| Statement::Loop(body))
.map(Statement::Loop)
};
let x = choice((return_p, break_p, continue_p, call_p, loop_p));
x
Expand Down

0 comments on commit 1963251

Please sign in to comment.