mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Fix closure indentation and indented-else handling in niche pattern case
This commit is contained in:
parent
9f3f99c573
commit
307b0d9ea9
11 changed files with 299 additions and 128 deletions
|
@ -2576,6 +2576,10 @@ where
|
|||
move |arena, state, _min_indent| parser.parse(arena, state, 0)
|
||||
}
|
||||
|
||||
pub fn capture_line_indent<'a, X: 'a>() -> impl Parser<'a, u32, X> {
|
||||
move |_arena, state: State<'a>, _min_indent| Ok((NoProgress, state.line_indent(), state))
|
||||
}
|
||||
|
||||
pub fn set_min_indent<'a, P, T, X: 'a>(min_indent: u32, parser: P) -> impl Parser<'a, T, X>
|
||||
where
|
||||
P: Parser<'a, T, X>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue