GNU bug report logs - #9383
24.0.50; Comment-line continuation not highlighted correctly in c-mode.

Previous Next

Packages: emacs, cc-mode;

Reported by: Alexander Duscheleit <alexander.duscheleit <at> gmail.com>

Date: Fri, 26 Aug 2011 23:22:01 UTC

Severity: normal

Merged with 12641

Found in version 24.0.50

Fixed in version 25.1

Done: Alex <agrambot <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 9383 <at> debbugs.gnu.org (full text, mbox):

From: Alex <agrambot <at> gmail.com>
To: Chen Fengyuan <jeova.sanctus.unus <at> gmail.com>
Cc: 9383 <at> debbugs.gnu.org, 12641 <at> debbugs.gnu.org
Subject: Re: bug#12641: Backslash in the end of comment lines in C/C++
Date: Fri, 14 Oct 2016 16:37:30 -0600
close 9383 25.1
quit

Chen Fengyuan <jeova.sanctus.unus <at> gmail.com> writes:

> ...
> 
> int a=1;
> //some comment \
> a++;
> printf("%d\n",a);
> //some comment ??/
> a++;
> printf("%d\n",a);
>
> a++ is a part of comment, but emacs don't highlight a++ as a comment.
> http://stackoverflow.com/questions/2384276/backslash-in-the-end-of-comment-lines-in-c-c
>
> ...

In Emacs 25.1 the first a++ is now commented correctly.

The 2nd a++ is not commented, but this is a known limitation according
 to
 https://www.gnu.org/software/emacs/manual/html_node/ccmode/Limitations-and-Known-Bugs.html

If trigraph support is desired, then I believe a new bug report should be
opened.





This bug report was last modified 8 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.