From 879179873f7771a0344c2f7ec25945c7f3fdea02 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, 14 Oct 2018 11:48:14 +0200 Subject: [PATCH] fix #1368 --- CodeCompletion/CodeFormatter.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CodeCompletion/CodeFormatter.cs b/CodeCompletion/CodeFormatter.cs index 3131705c6..0256e7e8d 100644 --- a/CodeCompletion/CodeFormatter.cs +++ b/CodeCompletion/CodeFormatter.cs @@ -607,10 +607,17 @@ namespace CodeFormatters { comm = "; " + trimedstr.Substring(1).TrimStart(' ', '\t'); } + else if (trimedstr == ".") + comm = trimedstr; //else if (sn is uses_closure || sn is formal_parameters || sn is type_declaration) // comm = comm.TrimStart(); if (sn is program_module || sn is unit_module) + { comm = Text.Substring(prev_pos); + trimedstr = comm.TrimStart(); + if (trimedstr.StartsWith(".")) + comm = trimedstr; + } if (comm.StartsWith(" ")) add_space_before = true; if (comm != "()")