Skip to content

Commit f3b320a

Browse files
Add BOX_KW to PATTERN_FIRST
1 parent 08e5d39 commit f3b320a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_parser/src/grammar/patterns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::*;
22

33
pub(super) const PATTERN_FIRST: TokenSet = expressions::LITERAL_FIRST
44
.union(paths::PATH_FIRST)
5-
.union(token_set![REF_KW, MUT_KW, L_PAREN, L_BRACK, AMP, UNDERSCORE, MINUS]);
5+
.union(token_set![BOX_KW, REF_KW, MUT_KW, L_PAREN, L_BRACK, AMP, UNDERSCORE, MINUS]);
66

77
pub(super) fn pattern(p: &mut Parser) {
88
pattern_r(p, PAT_RECOVERY_SET);

0 commit comments

Comments
 (0)