From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>
Cc: casouri@gmail.com, 72263@debbugs.gnu.org
Subject: bug#72263: 31.0.50; Wrong indentation c++-ts-mode
Date: Thu, 01 Aug 2024 08:06:38 +0300 [thread overview]
Message-ID: <868qxgygpt.fsf@gnu.org> (raw)
In-Reply-To: <266A7254-4449-4F6A-A69F-D98C6DF8CC2E@aol.com> (message from Ergus on Wed, 31 Jul 2024 23:09:53 +0200)
> Date: Wed, 31 Jul 2024 23:09:53 +0200
> From: Ergus <spacibba@aol.com>
> CC: 72263@debbugs.gnu.org
>
> I found another indentation issue in if-else conditions without
> parenthesis:
>
> if (pid == 0)
> print "hello from the child"
> else
> print "hello from the parent"
>
> The else is not indented properly:
The above is not valid C++ code, AFAIU, so I don't understand why you
expect c++-ts-mode to handle it properly (and what exactly is "proper"
indentation in that case?).
next prev parent reply other threads:[~2024-08-01 5:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87cyn3vequ.fsf.ref@aol.com>
2024-07-24 0:02 ` bug#72263: 31.0.50; Wrong indentation c++-ts-mode Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-25 7:29 ` Eli Zaretskii
2024-07-25 7:53 ` Yuan Fu
2024-07-31 21:09 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-01 5:06 ` Eli Zaretskii [this message]
2024-08-01 7:03 ` Yuan Fu
2024-08-17 7:28 ` Eli Zaretskii
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=868qxgygpt.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72263@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=spacibba@aol.com \
/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).