From: Lars Ingebrigtsen <larsi@gnus.org>
To: Bastian Beischer <bastian.beischer@gmail.com>
Cc: 28939@debbugs.gnu.org
Subject: bug#28939: 27.0.50; CC-Mode: (C++) Comment directly after quote breaks following lines
Date: Mon, 30 Nov 2020 11:42:52 +0100 [thread overview]
Message-ID: <87sg8rcehf.fsf@gnus.org> (raw)
In-Reply-To: <87efpvmwim.fsf@gmail.com> (Bastian Beischer's message of "Sun, 22 Oct 2017 10:12:17 +0200")
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]
Bastian Beischer <bastian.beischer@gmail.com> writes:
> The following file is incorrectly parsed by CC-Mode (font-lock
> considers everything after //bar to be a comment, for example):
>
> #include "foo.h"//bar
> int main(int argc, char** argv) {
> return 0;
> }
>
> This problem is reproduceable from emacs -Q when inserting the above
> into a c++-mode buffer.
>
> This is with emacs built from 94281c9a1cc0f756841fdc9b266657853df94a29
> on master, but I guess this is relevant for emacs-26 as well.
(This bug report unfortunately got no response at the time.)
I'm unable to reproduce this in Emacs 26.1, 27.1 or the current trunk.
For instance, in Emacs 26.1, it displays as:
[-- Attachment #2: Type: image/png, Size: 19609 bytes --]
[-- Attachment #3: Type: text/plain, Size: 206 bytes --]
which looks correct to me.
Are you still seeing this problem, or has it been fixed in the meantime?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-11-30 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-22 8:12 bug#28939: 27.0.50; CC-Mode: (C++) Comment directly after quote breaks following lines Bastian Beischer
2020-11-30 10:42 ` Lars Ingebrigtsen [this message]
2020-11-30 12:55 ` Bastian Beischer
2020-11-30 13:00 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sg8rcehf.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=28939@debbugs.gnu.org \
--cc=bastian.beischer@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.