From 7b92a55ff700019908c137493435c12d50a2d8e0 Mon Sep 17 00:00:00 2001 From: Gowri Date: Mon, 8 Feb 2021 09:57:16 +1030 Subject: fix: add for keyword in completion #7588 --- crates/completion/src/completions/keyword.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/completion/src') diff --git a/crates/completion/src/completions/keyword.rs b/crates/completion/src/completions/keyword.rs index 47e146128..17a8069fe 100644 --- a/crates/completion/src/completions/keyword.rs +++ b/crates/completion/src/completions/keyword.rs @@ -88,6 +88,7 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte add_keyword(ctx, acc, "loop", "loop {$0}"); add_keyword(ctx, acc, "if", "if $0 {}"); add_keyword(ctx, acc, "if let", "if let $1 = $0 {}"); + add_keyword(ctx, acc, "for", "for $0 in $1 {}"); } if ctx.if_is_prev || ctx.block_expr_parent { -- cgit v1.2.3