From unknown Tue Aug 19 07:28:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9383 <9383@debbugs.gnu.org> To: bug#9383 <9383@debbugs.gnu.org> Subject: Status: 24.0.50; Comment-line continuation not highlighted correctly in c-mode. Reply-To: bug#9383 <9383@debbugs.gnu.org> Date: Tue, 19 Aug 2025 14:28:47 +0000 retitle 9383 24.0.50; Comment-line continuation not highlighted correctly i= n c-mode. reassign 9383 emacs,cc-mode submitter 9383 Alexander Duscheleit severity 9383 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 26 19:21:56 2011 Received: (at submit) by debbugs.gnu.org; 26 Aug 2011 23:21:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx5ik-0005vH-Oc for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:21:55 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qx5V9-0004ur-SY for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:07:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx5SR-0000Rh-Aj for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:05:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:33645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SR-0000Rc-96 for submit@debbugs.gnu.org; Fri, 26 Aug 2011 19:05:03 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SQ-00021p-9a for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx5SO-0000R3-NX for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:02 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:58230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx5SO-0000Qi-Ic for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2011 19:05:00 -0400 Received: by bkbzt4 with SMTP id zt4so3314217bkb.0 for ; Fri, 26 Aug 2011 16:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; bh=i7m0n/4K64zgwKvIM6Eqi4NA6dSW5EJe6pw4veyl3Sc=; b=iSTNBdYhxTRSa7tp/VLIJ/fehfNon6Ath6r1BiMctLCGmAMmNJQ9W75dlYvp8b84OJ wBP25ISR4C4SHBSlapWjN+P3q5DrinK5cwDByRH3DyovU10ufkqjxvj9v3TFskMYhrI2 yA9wn95V5xKkTSaO2h7ZgxrdZAG/frlf2JC74= Received: by 10.204.152.148 with SMTP id g20mr900056bkw.382.1314399899079; Fri, 26 Aug 2011 16:04:59 -0700 (PDT) Received: from hydra (odnb-4dbcbe5c.pool.mediaWays.net [77.188.190.92]) by mx.google.com with ESMTPS id j17sm577297bks.46.2011.08.26.16.04.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Aug 2011 16:04:57 -0700 (PDT) From: Alexander Duscheleit To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Comment-line continuation not highlighted correctly in c-mode. Date: Sat, 27 Aug 2011 01:04:54 +0200 Message-ID: <87mxevydt5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Aug 2011 19:21:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) At least in C and C++ modes comment line continuations (aka ending in '\') are not highlighted correcly. Th following code snipped demonstrates the wrong behaviour: else if (code == 200) { // Downloading whole file /* Write new file (plus allow reading once we finish) */ // FIXME Win32 native version fails here because Microsoft's version of tmpfile() creates the file in C:\ g = fname ? fopen(fname, "w+") : tmpfile(); } Although the //FIXME line ends in a backslash, Emacs renders the following line as normal code. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.5) of 2011-08-23 on hydra Windowing system distributor `The X.Org Foundation', version 11.0.11003901 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--without-sound' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe' 'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item Load-path shadows: None found. Features: (shadow sort mail-extr message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug tango-dark-theme org-google-weather solar cal-dst regexp-opt cal-menu calendar cal-loaddefs format-spec google-weather cl xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-vars mm-util mail-prsvr mailcap linum auctex-autoloads tex-site info easymenu clojure-mode-autoloads dired-single-autoloads magit-autoloads multi-term-autoloads paredit-autoloads rainbow-mode-autoloads slime-repl-autoloads slime-autoloads package tabulated-list mime-w3m advice help-fns advice-preload w3m-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 15 15:42:00 2012 Received: (at control) by debbugs.gnu.org; 15 Oct 2012 19:42:00 +0000 Received: from localhost ([127.0.0.1]:45731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNqY3-0008RE-Jk for submit@debbugs.gnu.org; Mon, 15 Oct 2012 15:42:00 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:41369 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNqY1-0008R6-AI for control@debbugs.gnu.org; Mon, 15 Oct 2012 15:41:58 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TNqWu-0004pp-BE for control@debbugs.gnu.org; Mon, 15 Oct 2012 15:40:48 -0400 Date: Mon, 15 Oct 2012 15:40:48 -0400 Message-Id: Subject: control message for bug 12641 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) merge 9383 12641 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 14 18:37:46 2016 Received: (at 9383) by debbugs.gnu.org; 14 Oct 2016 22:37:46 +0000 Received: from localhost ([127.0.0.1]:56158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvB6o-0005v4-GZ for submit@debbugs.gnu.org; Fri, 14 Oct 2016 18:37:46 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:37450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvB6j-0005ua-Sl; Fri, 14 Oct 2016 18:37:45 -0400 Received: by mail-it0-f50.google.com with SMTP id m138so3707878itm.0; Fri, 14 Oct 2016 15:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=oxUwouf0pncCmSj8N96kM7wgjPW2ZrDv6AXS6v7oS1k=; b=PmiaAUv5XKdknzN/wK69kw1G0eK1dABNzbCnq/E41OzOjHCyyMKsRHu1iyc91d+a7z +wIpWB04dN1oSRX8GaWpPtKMy9IP0rS5eWSU6fyuFqIA2EpWbXwyNvmSbxqNetedw/ES x1yBpgtYUXax9uyF3YuLah2sKQE9dhf8SuoI3XyCiqnMfaa0lx1/UEVfTr+3deBM3Os3 GRTUzg4f1aPJg1rfmlyk4T4Rw99KzJpuCI5oq5Fm/NjWuHr9zZP3bY82T7cwK94KQeB9 OL6G3vI4IvFAc67fA1L/+aQnPRqfjRm1kkGqqrQmmUu8xSXfag4JEVpn4p42OqlibQbe KFAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=oxUwouf0pncCmSj8N96kM7wgjPW2ZrDv6AXS6v7oS1k=; b=jMgjBBNIMqRrpKNRYpO00eaROCJ/7XZ49m11u78kiqRtH3J6hi9fBz7GfzO8XY9z0w mKzjr6rc/rDcw6kcr5t56ad3W7OXTenUyaWxPMQ8/2jJOqkUJTUswSZyd4Kdozp0BREV HkUN5D4dQZ2rXhOp8E9Uwxj6WdQHvfzBqo6dW6AajKOEUakYmvsrcO/mP2xfcNKD1L7O +3G1+XPFOLrO0xDoMwrndTxtoupYz9DVunhBBHNxuFncDRGK/3yVnvbGkRR+7hQcYG68 UBiZv7XB6xugj8kPxHebD/5KkoVzX3kDvv9kstWlGJrtbRKSOPUugEvzdrdsodhZ9MUz EUMg== X-Gm-Message-State: AA6/9Rlq55felkZae8HWhnJUIOGpO5B9gxg+m2LiwzaJO3QYwaHS3CBNnJH/wctk40v8KQ== X-Received: by 10.36.90.202 with SMTP id v193mr410068ita.120.1476484653424; Fri, 14 Oct 2016 15:37:33 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id 80sm8537453iot.36.2016.10.14.15.37.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Oct 2016 15:37:32 -0700 (PDT) From: Alex To: Chen Fengyuan Subject: Re: bug#12641: Backslash in the end of comment lines in C/C++ References: <2EC2551D-51D2-4782-AC39-4FF0047989CD@gmail.com> Date: Fri, 14 Oct 2016 16:37:30 -0600 Message-ID: <87eg3i8slx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 9383 Cc: 9383@debbugs.gnu.org, 12641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) close 9383 25.1 quit Chen Fengyuan 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. From unknown Tue Aug 19 07:28:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Nov 2016 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator