From c9e0fbb5f85bf7b43f95b0bd917cb3543fc0ce5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sun, 30 Sep 2018 18:47:09 +0200 Subject: [PATCH] fix #1299 --- CodeCompletion/CodeFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeCompletion/CodeFormatter.cs b/CodeCompletion/CodeFormatter.cs index 1cb986ad1..204a104c5 100644 --- a/CodeCompletion/CodeFormatter.cs +++ b/CodeCompletion/CodeFormatter.cs @@ -556,7 +556,7 @@ namespace CodeFormatters { string comm = Text.Substring(prev_pos, pos - prev_pos); string trimedstr = comm.TrimStart(); - if (sn is loop_stmt || sn is case_node || sn is if_node || sn is while_node) + if (sn is loop_stmt || sn is case_node || sn is if_node || sn is while_node || sn is foreach_stmt) { if (trimedstr == "do" || trimedstr == "of" || trimedstr == "then")