From: Eli Zaretskii <eliz@gnu.org>
To: Carlos <carlos@cvkm.cz>, Theodor Thornhill <theo@thornhill.no>,
Yuan Fu <casouri@gmail.com>
Cc: 69571@debbugs.gnu.org
Subject: bug#69571: 29.2; csharp-mode indentation: Misaligned closing brace in blocks starting below "new"
Date: Sat, 09 Mar 2024 10:38:30 +0200 [thread overview]
Message-ID: <86zfv7yf3t.fsf@gnu.org> (raw)
In-Reply-To: <20240305220951.00005489@cvkm.cz> (message from Carlos on Tue, 5 Mar 2024 22:09:51 +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?
next prev parent reply other threads:[~2024-03-09 8:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 21:09 bug#69571: 29.2; csharp-mode indentation: Misaligned closing brace in blocks starting below "new" Carlos
2024-03-09 8:38 ` Eli Zaretskii [this message]
2024-03-09 9:13 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-10 19:21 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-16 11:19 ` Eli Zaretskii
2024-03-16 17:01 ` Dmitry Gutov
2024-03-16 17:25 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-16 19:45 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-16 20:11 ` Eli Zaretskii
2024-03-30 12:15 ` Mattias Engdegård
2024-03-30 12:30 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-31 8:57 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-31 9:42 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86zfv7yf3t.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=69571@debbugs.gnu.org \
--cc=carlos@cvkm.cz \
--cc=casouri@gmail.com \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).