mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
do not set an underscore on parse and only prefix in formatter
This commit is contained in:
parent
f471d5bbe1
commit
72c85009c6
4 changed files with 9 additions and 7 deletions
|
@ -128,7 +128,10 @@ impl<'a> Formattable<'a> for Pattern<'a> {
|
|||
StrLiteral(literal) => {
|
||||
todo!("Format string literal: {:?}", literal);
|
||||
}
|
||||
Underscore(name) => buf.push_str(name),
|
||||
Underscore(name) => {
|
||||
buf.push('_');
|
||||
buf.push_str(name);
|
||||
}
|
||||
|
||||
// Space
|
||||
SpaceBefore(sub_pattern, spaces) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue