From 5a6db3ca297357b7fb6319ce9b096f4ec15e7997 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 28 Oct 2019 15:36:38 +0300 Subject: fix parsing of for loops inside expressions closes #2051 --- crates/ra_parser/src/grammar/expressions/atom.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/ra_parser/src') 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 = LIFETIME, ASYNC_KW, TRY_KW, - LOOP_KW + LOOP_KW, + FOR_KW, ]); const EXPR_RECOVERY_SET: TokenSet = token_set![LET_KW]; -- cgit v1.2.3