GNU bug report logs -
#28939
27.0.50; CC-Mode: (C++) Comment directly after quote breaks following lines
Previous Next
Reported by: Bastian Beischer <bastian.beischer <at> gmail.com>
Date: Sun, 22 Oct 2017 08:13:01 UTC
Severity: normal
Tags: moreinfo
Found in version 27.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello Lars,
On Mon, Nov 30, 2020 at 11:43 AM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Bastian Beischer <bastian.beischer <at> 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:
>
>
> which looks correct to me.
>
> Are you still seeing this problem, or has it been fixed in the meantime?
Yes, it seems it's fixed. Thanks for following up!
Cheers
Bastian
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.