mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Implement tuple accessors after records/tuples
This commit is contained in:
parent
a1432d1a14
commit
56470c838d
9 changed files with 106 additions and 61 deletions
|
@ -1789,7 +1789,7 @@ macro_rules! one_or_more {
|
|||
move |arena, state: State<'a>, min_indent: u32| {
|
||||
use bumpalo::collections::Vec;
|
||||
|
||||
match $parser.parse(arena, state, min_indent) {
|
||||
match $parser.parse(arena, state.clone(), min_indent) {
|
||||
Ok((_, first_output, next_state)) => {
|
||||
let mut state = next_state;
|
||||
let mut buf = Vec::with_capacity_in(1, arena);
|
||||
|
@ -1807,14 +1807,12 @@ macro_rules! one_or_more {
|
|||
return Ok((MadeProgress, buf, old_state));
|
||||
}
|
||||
Err((MadeProgress, fail)) => {
|
||||
return Err((MadeProgress, fail, old_state));
|
||||
return Err((MadeProgress, fail));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Err((progress, _, new_state)) => {
|
||||
Err((progress, $to_error(new_state.pos), new_state))
|
||||
}
|
||||
Err((progress, _)) => Err((progress, $to_error(state.pos()))),
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue