mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Merge branch 'main' into format-invisible-chars
This commit is contained in:
commit
6b6968632f
34 changed files with 384 additions and 178 deletions
|
@ -39,6 +39,7 @@ impl<'a> Formattable for Expr<'a> {
|
|||
| NonBase10Int { .. }
|
||||
| SingleQuote(_)
|
||||
| AccessorFunction(_)
|
||||
| RecordUpdater(_)
|
||||
| Var { .. }
|
||||
| Underscore { .. }
|
||||
| MalformedIdent(_, _)
|
||||
|
@ -510,6 +511,11 @@ impl<'a> Formattable for Expr<'a> {
|
|||
Accessor::TupleIndex(key) => buf.push_str(key),
|
||||
}
|
||||
}
|
||||
RecordUpdater(key) => {
|
||||
buf.indent(indent);
|
||||
buf.push('&');
|
||||
buf.push_str(key);
|
||||
}
|
||||
RecordAccess(expr, key) => {
|
||||
expr.format_with_options(buf, Parens::InApply, Newlines::Yes, indent);
|
||||
buf.push('.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue