[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28939: 27.0.50; CC-Mode: (C++) Comment directly after quote breaks f

From: Lars Ingebrigtsen
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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:

PNG image

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]