diff options
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/patterns.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index cf722eef4..877ae5b7a 100644 --- a/crates/ra_parser/src/grammar/patterns.rs +++ b/crates/ra_parser/src/grammar/patterns.rs | |||
@@ -196,9 +196,8 @@ fn record_field_pat(p: &mut Parser) { | |||
196 | 196 | ||
197 | let m = p.start(); | 197 | let m = p.start(); |
198 | 198 | ||
199 | match p.current() { | 199 | if !p.eat(INT_NUMBER) { |
200 | IDENT => name(p), | 200 | name(p) |
201 | _ => p.bump_any(), | ||
202 | } | 201 | } |
203 | 202 | ||
204 | p.bump_any(); | 203 | p.bump_any(); |