mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
all parse tests work!
This commit is contained in:
parent
e83cb0d027
commit
d284d3bb72
4 changed files with 12 additions and 25 deletions
|
@ -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()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue