unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex <agrambot@gmail.com>
To: Chen Fengyuan <jeova.sanctus.unus@gmail.com>
Cc: 9383@debbugs.gnu.org, 12641@debbugs.gnu.org
Subject: bug#12641: Backslash in the end of comment lines in C/C++
Date: Fri, 14 Oct 2016 16:37:30 -0600	[thread overview]
Message-ID: <87eg3i8slx.fsf@gmail.com> (raw)
In-Reply-To: <2EC2551D-51D2-4782-AC39-4FF0047989CD@gmail.com>

close 9383 25.1
quit

Chen Fengyuan <jeova.sanctus.unus@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.






      reply	other threads:[~2016-10-14 22:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14  2:56 bug#12641: Backslash in the end of comment lines in C/C++ Chen Fengyuan
2016-10-14 22:37 ` Alex [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eg3i8slx.fsf@gmail.com \
    --to=agrambot@gmail.com \
    --cc=12641@debbugs.gnu.org \
    --cc=9383@debbugs.gnu.org \
    --cc=jeova.sanctus.unus@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).