diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-28 12:41:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-28 12:41:59 +0000 |
commit | 1ca41f2118fca17ee5ad0f586218489fa5d883af (patch) | |
tree | 6ff282a66cd3e95531f56a295a26793c681c694a /crates/ra_parser | |
parent | 02828520a75f686d044cb9767572ea49e93c4828 (diff) | |
parent | 5a6db3ca297357b7fb6319ce9b096f4ec15e7997 (diff) |
Merge #2108
2108: fix parsing of for loops inside expressions r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions/atom.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index 7454005c4..4952bd189 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs | |||
@@ -56,7 +56,8 @@ pub(super) const ATOM_EXPR_FIRST: TokenSet = | |||
56 | LIFETIME, | 56 | LIFETIME, |
57 | ASYNC_KW, | 57 | ASYNC_KW, |
58 | TRY_KW, | 58 | TRY_KW, |
59 | LOOP_KW | 59 | LOOP_KW, |
60 | FOR_KW, | ||
60 | ]); | 61 | ]); |
61 | 62 | ||
62 | const EXPR_RECOVERY_SET: TokenSet = token_set![LET_KW]; | 63 | const EXPR_RECOVERY_SET: TokenSet = token_set![LET_KW]; |