aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorGowri <[email protected]>2021-02-07 23:27:16 +0000
committerGowri <[email protected]>2021-02-07 23:27:16 +0000
commit7b92a55ff700019908c137493435c12d50a2d8e0 (patch)
tree9b868481c2c037cd17217f3f87042d31ebf08bfd /crates
parent336909b63a14b801520c6627d90d750babcfe280 (diff)
fix: add for keyword in completion #7588
Diffstat (limited to 'crates')
-rw-r--r--crates/completion/src/completions/keyword.rs1
1 files changed, 1 insertions, 0 deletions
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
88 add_keyword(ctx, acc, "loop", "loop {$0}"); 88 add_keyword(ctx, acc, "loop", "loop {$0}");
89 add_keyword(ctx, acc, "if", "if $0 {}"); 89 add_keyword(ctx, acc, "if", "if $0 {}");
90 add_keyword(ctx, acc, "if let", "if let $1 = $0 {}"); 90 add_keyword(ctx, acc, "if let", "if let $1 = $0 {}");
91 add_keyword(ctx, acc, "for", "for $0 in $1 {}");
91 } 92 }
92 93
93 if ctx.if_is_prev || ctx.block_expr_parent { 94 if ctx.if_is_prev || ctx.block_expr_parent {