From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#59816: 29.0.60; c++-ts-mode handles one-line comments badly Date: Mon, 5 Dec 2022 16:44:14 +0000 Message-ID: References: <08257d6b-2426-bbdf-0ed4-edd161801ad6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59816@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 17:45:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2Eas-00040Y-Q6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 17:45:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2EaX-0006mo-NM; Mon, 05 Dec 2022 11:45:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2EaV-0006kd-AE for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 11:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2EaU-0007Zb-Oh for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 11:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2EaU-0005D0-AR for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 11:45:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <08257d6b-2426-bbdf-0ed4-edd161801ad6@gmail.com> Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2022 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59816 X-GNU-PR-Package: emacs Original-Received: via spool by 59816-submit@debbugs.gnu.org id=B59816.167025866319984 (code B ref 59816); Mon, 05 Dec 2022 16:45:02 +0000 Original-Received: (at 59816) by debbugs.gnu.org; 5 Dec 2022 16:44:23 +0000 Original-Received: from localhost ([127.0.0.1]:37120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2EZr-0005CG-20 for submit@debbugs.gnu.org; Mon, 05 Dec 2022 11:44:23 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]:28519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2EZq-0005C9-08 for 59816@debbugs.gnu.org; Mon, 05 Dec 2022 11:44:22 -0500 Original-Received: (qmail 40710 invoked by uid 3782); 5 Dec 2022 17:44:15 +0100 Original-Received: from acm.muc.de (p4fe15a8e.dip0.t-ipconnect.de [79.225.90.142]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 05 Dec 2022 17:44:14 +0100 Original-Received: (qmail 7189 invoked by uid 1000); 5 Dec 2022 16:44:14 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250049 Archived-At: Hello, Theodor, Perhaps a little different from the original bug report, but while you're at it, you may want to handle continued C++ line comments (I haven't checked whether you've done this already, so apologies if so). Here, in a comment, if the last character on the comment line is a \, this continues the comment onto the next line. This backslash cannot itself be escaped, so a comment line ending in \\ continues on to the next line, too. All the best with it! -- Alan Mackenzie (Nuremberg, Germany).