all parse tests work!

This commit is contained in:
Folkert 2021-02-02 16:31:46 +01:00
parent e83cb0d027
commit d284d3bb72
4 changed files with 12 additions and 25 deletions

View file

@ -343,14 +343,8 @@ fn spaces<'a>(
state = state.advance_spaces(1)?;
}
'\n' => {
// must check indent to not make undesired progress
let progress =
Progress::from_lengths(start_bytes_len, state.bytes.len());
state =
state.check_indent(min_indent).map_err(|(fail, _)| {
(progress, fail, original_state.clone())
})?;
// don't need to check the indent here since we'll reset it
// anyway
state = state.newline()?;