|
From: | Theodor Thornhill |
Subject: | bug#69571: 29.2; csharp-mode indentation: Misaligned closing brace in blocks starting below "new" |
Date: | Sat, 09 Mar 2024 10:13:38 +0100 |
> Date: Tue, 5 Mar 2024 22:09:51 +0100
> From: Carlos <carlos@cvkm.cz>
>
> Any block starting on the line immediately below a line having the
> string "new" will have its closing brace aligned with the opening one.
>
> See the following code:
>
> public class Foo {
> void Bar () {
> var x = new X(); // [1]
> for (;;) {
> x();
> } // [2]
> }
> }
>
> Line [1] says "new". The closing brace in line [2] is aligned to the
> opening brace.
>
> If you comment out the "new" (or the whole line) the problem persists.
>
> If you remove the "new" the problem goes away and [2] is correctly
> aligned.
>
> If you insert a line between line [1] and the one having the opening
> brace the problem goes away.
Theo and Yuan, could you please look into this?
[Prev in Thread] | Current Thread | [Next in Thread] |