Subject: bug#12641: Backslash in the end of comment lines in C/C++

From: Alex <[email-masked]>
Date: Fri, 14 Oct 2016 16:37:30 -0600

close 9383 25.1
quit

Chen Fengyuan <[email-masked]> 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.