mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-23 20:12:27 +00:00
Fix approximately a bajillion fmt and parsing bugs
(discovered by fuzzing) There's more to come, but this seems like a good batch for now.
This commit is contained in:
parent
8f62eeaf7e
commit
0b8e68f70d
68 changed files with 1011 additions and 229 deletions
|
@ -406,13 +406,13 @@ fn loc_ident_pattern_help<'a>(
|
|||
))
|
||||
}
|
||||
}
|
||||
Ident::RecordAccessorFunction(string) | Ident::TupleAccessorFunction(string) => Ok((
|
||||
Ident::RecordAccessorFunction(_string) => Err((
|
||||
MadeProgress,
|
||||
Loc {
|
||||
region: loc_ident.region,
|
||||
value: Pattern::Malformed(string),
|
||||
},
|
||||
state,
|
||||
EPattern::RecordAccessorFunction(loc_ident.region.start()),
|
||||
)),
|
||||
Ident::TupleAccessorFunction(_string) => Err((
|
||||
MadeProgress,
|
||||
EPattern::TupleAccessorFunction(loc_ident.region.start()),
|
||||
)),
|
||||
Ident::Malformed(malformed, problem) => {
|
||||
debug_assert!(!malformed.is_empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue