mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
lift spaces in backpassing (fixes #7364)
This commit is contained in:
parent
db95ff54cf
commit
abde9e86b1
5 changed files with 65 additions and 2 deletions
|
@ -1911,7 +1911,6 @@ fn fmt_backpassing<'a>(
|
|||
loc_patterns: &'a [Loc<Pattern<'a>>],
|
||||
loc_body: &'a Loc<Expr<'a>>,
|
||||
loc_ret: &'a Loc<Expr<'a>>,
|
||||
|
||||
outer_indent: u16,
|
||||
) {
|
||||
use self::Expr::*;
|
||||
|
@ -1936,7 +1935,7 @@ fn fmt_backpassing<'a>(
|
|||
Parens::NotNeeded
|
||||
};
|
||||
|
||||
let pat = loc_pattern.value.extract_spaces();
|
||||
let pat = pattern_lift_spaces(buf.text.bump(), &loc_pattern.value);
|
||||
|
||||
if !first {
|
||||
buf.indent(arg_indent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue