diff options
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/patterns.rs | 4 | ||||
-rw-r--r-- | crates/ra_parser/src/syntax_kind/generated.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index 9bfdcfd41..936d27575 100644 --- a/crates/ra_parser/src/grammar/patterns.rs +++ b/crates/ra_parser/src/grammar/patterns.rs | |||
@@ -84,7 +84,7 @@ fn atom_pat(p: &mut Parser, recovery_set: TokenSet) -> Option<CompletedMarker> { | |||
84 | // Checks the token after an IDENT to see if a pattern is a path (Struct { .. }) or macro | 84 | // Checks the token after an IDENT to see if a pattern is a path (Struct { .. }) or macro |
85 | // (T![x]). | 85 | // (T![x]). |
86 | T!['('] | T!['{'] | T![!] => path_or_macro_pat(p), | 86 | T!['('] | T!['{'] | T![!] => path_or_macro_pat(p), |
87 | T![:] if p.nth_at(1, T![::]) => path_pat(p), | 87 | T![:] if p.nth_at(1, T![::]) => path_or_macro_pat(p), |
88 | _ => bind_pat(p, true), | 88 | _ => bind_pat(p, true), |
89 | }, | 89 | }, |
90 | 90 | ||
@@ -156,7 +156,7 @@ fn path_or_macro_pat(p: &mut Parser) -> CompletedMarker { | |||
156 | // } | 156 | // } |
157 | T![!] => { | 157 | T![!] => { |
158 | items::macro_call_after_excl(p); | 158 | items::macro_call_after_excl(p); |
159 | MACRO_CALL | 159 | return m.complete(p, MACRO_CALL).precede(p).complete(p, MACRO_PAT); |
160 | } | 160 | } |
161 | _ => PATH_PAT, | 161 | _ => PATH_PAT, |
162 | }; | 162 | }; |
diff --git a/crates/ra_parser/src/syntax_kind/generated.rs b/crates/ra_parser/src/syntax_kind/generated.rs index dfc30d727..4c16cf1cd 100644 --- a/crates/ra_parser/src/syntax_kind/generated.rs +++ b/crates/ra_parser/src/syntax_kind/generated.rs | |||
@@ -167,6 +167,7 @@ pub enum SyntaxKind { | |||
167 | SLICE_PAT, | 167 | SLICE_PAT, |
168 | RANGE_PAT, | 168 | RANGE_PAT, |
169 | LITERAL_PAT, | 169 | LITERAL_PAT, |
170 | MACRO_PAT, | ||
170 | TUPLE_EXPR, | 171 | TUPLE_EXPR, |
171 | ARRAY_EXPR, | 172 | ARRAY_EXPR, |
172 | PAREN_EXPR, | 173 | PAREN_EXPR, |