aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-28 12:36:38 +0000
committerAleksey Kladov <[email protected]>2019-10-28 12:41:34 +0000
commit5a6db3ca297357b7fb6319ce9b096f4ec15e7997 (patch)
tree6ff282a66cd3e95531f56a295a26793c681c694a /crates/ra_parser
parent02828520a75f686d044cb9767572ea49e93c4828 (diff)
fix parsing of for loops inside expressions
closes #2051
Diffstat (limited to 'crates/ra_parser')
-rw-r--r--crates/ra_parser/src/grammar/expressions/atom.rs3
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
62const EXPR_RECOVERY_SET: TokenSet = token_set![LET_KW]; 63const EXPR_RECOVERY_SET: TokenSet = token_set![LET_KW];