diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-08 22:14:47 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-08 22:14:47 +0100 |
commit | 6cd11bbbc235bcc3891f20c6d4097834cf1990e5 (patch) | |
tree | 8f246de36dcc04d33285ab2f2f9558f7e975626a /crates/parser | |
parent | 4e33cbc6ad40b993d2c0e67a93bbf4a48a54a8eb (diff) | |
parent | 174f043c8d9186d2bec7c9a45b7a6ca68b232c80 (diff) |
Merge #8775
8775: Add `=` to pattern recovery r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/parser')
-rw-r--r-- | crates/parser/src/grammar/patterns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/grammar/patterns.rs b/crates/parser/src/grammar/patterns.rs index 3ab347834..f1d1f9eaa 100644 --- a/crates/parser/src/grammar/patterns.rs +++ b/crates/parser/src/grammar/patterns.rs | |||
@@ -83,7 +83,7 @@ fn pattern_single_r(p: &mut Parser, recovery_set: TokenSet) { | |||
83 | } | 83 | } |
84 | 84 | ||
85 | const PAT_RECOVERY_SET: TokenSet = | 85 | const PAT_RECOVERY_SET: TokenSet = |
86 | TokenSet::new(&[T![let], T![if], T![while], T![loop], T![match], T![')'], T![,]]); | 86 | TokenSet::new(&[T![let], T![if], T![while], T![loop], T![match], T![')'], T![,], T![=]]); |
87 | 87 | ||
88 | fn atom_pat(p: &mut Parser, recovery_set: TokenSet) -> Option<CompletedMarker> { | 88 | fn atom_pat(p: &mut Parser, recovery_set: TokenSet) -> Option<CompletedMarker> { |
89 | let m = match p.nth(0) { | 89 | let m = match p.nth(0) { |