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#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped. Date: Thu, 28 Apr 2022 18:52:37 +0000 Message-ID: References: <20201122181957.GF5912@ACM> <73ccc858-dd03-248f-4b89-5679a8f3cd63@yandex.ru> <20201122211353.GH5912@ACM> <00dc580c-3b48-c185-9020-2cb2b7528884@yandex.ru> <20201122220110.GI5912@ACM> <87eeearkae.fsf@gnus.org> <87ilqtmp8n.fsf@gnus.org> 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="5990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43558@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Stefan Monnier , Dmitry Gutov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 20:53:53 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 1nk9Gy-0001MR-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 20:53:52 +0200 Original-Received: from localhost ([::1]:50272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk9Gw-00011q-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 14:53:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk9GA-0000Yd-NM for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 14:53:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk9GA-0001YJ-En for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk9GA-0003yv-D3 for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2022 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 43558-submit@debbugs.gnu.org id=B43558.165117196715285 (code B ref 43558); Thu, 28 Apr 2022 18:53:02 +0000 Original-Received: (at 43558) by debbugs.gnu.org; 28 Apr 2022 18:52:47 +0000 Original-Received: from localhost ([127.0.0.1]:49938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk9Fv-0003yT-II for submit@debbugs.gnu.org; Thu, 28 Apr 2022 14:52:47 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:31187 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nk9Fu-0003yG-3u for 43558@debbugs.gnu.org; Thu, 28 Apr 2022 14:52:46 -0400 Original-Received: (qmail 83567 invoked by uid 3782); 28 Apr 2022 18:52:39 -0000 Original-Received: from acm.muc.de (p4fe15b7b.dip0.t-ipconnect.de [79.225.91.123]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 28 Apr 2022 20:52:38 +0200 Original-Received: (qmail 6269 invoked by uid 1000); 28 Apr 2022 18:52:37 -0000 Content-Disposition: inline In-Reply-To: <87ilqtmp8n.fsf@gnus.org> 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" Xref: news.gmane.io gmane.emacs.bugs:230905 Archived-At: Hello, Lars. On Thu, Apr 28, 2022 at 13:17:12 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > > I think the bug should stay open, though. CC Mode still doesn't handle > > multi-line comments absolutely correctly, and these could surely be > > fixed, like Stefan said, by using syntax-table text properties somehow. > Just to add a test case for this bug -- put this into a C file: > /* > \*/ > a */ > cc-mode will highlight that as one comment (i.e., the "a" will be > coloured with the comment face), but the file won't compile, since the > comment ended at line two. (This is in Emacs 29.) I'll look at this in the coming days, and hopefully fix it. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).