From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped. Date: Thu, 28 Apr 2022 13:17:12 +0200 Message-ID: <87ilqtmp8n.fsf@gnus.org> References: <20201122170830.GD5912@ACM> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 43558@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Stefan Monnier , Dmitry Gutov To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 13:46:32 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 1nk2bP-00010L-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 13:46:31 +0200 Original-Received: from localhost ([::1]:43470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk2bG-0003Un-Hj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 07:46:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk29q-0002wr-5R for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 07:18:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk29p-00083w-Rm for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 07:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk29p-0007Mg-Ma for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 07:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2022 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43558 X-GNU-PR-Package: emacs Original-Received: via spool by 43558-submit@debbugs.gnu.org id=B43558.165114464627701 (code B ref 43558); Thu, 28 Apr 2022 11:18:01 +0000 Original-Received: (at 43558) by debbugs.gnu.org; 28 Apr 2022 11:17:26 +0000 Original-Received: from localhost ([127.0.0.1]:45574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk29G-0007CS-2j for submit@debbugs.gnu.org; Thu, 28 Apr 2022 07:17:26 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk29E-000776-Lw for 43558@debbugs.gnu.org; Thu, 28 Apr 2022 07:17:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+NW63Qw/ahgj0GUxWNH84xMFJznVp7hSIzC1DQR7GHY=; b=r+I4jH6F/N1tE9cam3eC89ZWdL tLph+S7CIY1B4uKxtSHN95N1rz5c/23WI7VpK2rLVTJeqn3RMBzUuNGeUOGRzQegKocq+dMh2YRCl dBqznPFuuC4z7qo2QuPZhuoX6hx0jdOfArUOPuiTAFXl3P+y0vpb+LoEBJLCMbsWGB3M=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk292-0008VS-Ra; Thu, 28 Apr 2022 13:17:15 +0200 X-Now-Playing: Lionrock's _This Is Fascism (1)_: "This Is Fascism (Destroy All Nazi's Mix)" In-Reply-To: (Alan Mackenzie's message of "Thu, 13 May 2021 14:51:18 +0000") 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:230861 Archived-At: 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.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no