mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Be more lenient with indentation in record parsing
... and extract a shared helper with collection_trailing_sep_e, thereby resolving some inconsistencies with normal collection parsing. ... and delete some dead code while I'm at it
This commit is contained in:
parent
6bdab37541
commit
07ebc81cba
9 changed files with 202 additions and 225 deletions
|
@ -1372,6 +1372,7 @@ fn format_field_multiline<'a, 'buf, T>(
|
|||
|
||||
if !spaces.is_empty() {
|
||||
fmt_spaces(buf, spaces.iter(), indent);
|
||||
buf.indent(indent);
|
||||
}
|
||||
|
||||
buf.push_str(separator_prefix);
|
||||
|
@ -1387,6 +1388,7 @@ fn format_field_multiline<'a, 'buf, T>(
|
|||
|
||||
if !spaces.is_empty() {
|
||||
fmt_spaces(buf, spaces.iter(), indent);
|
||||
buf.indent(indent);
|
||||
}
|
||||
|
||||
buf.push_str(separator_prefix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue