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: Sun, 22 Nov 2020 18:19:57 +0000 Message-ID: <20201122181957.GF5912@ACM> References: <20200923144824.GD6178@ACM> <20200924102022.GA4714@ACM> <20201119211822.GE6259@ACM> <20201122131231.GB5912@ACM> <20201122170830.GD5912@ACM> 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="20164"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43558@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Stefan Monnier To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 19:21:20 2020 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 1kgtzE-00056S-2I for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 19:21:20 +0100 Original-Received: from localhost ([::1]:34862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgtzD-0002mb-3h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 13:21:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgtyz-0002lt-55 for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 13:21:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgtyw-0007bw-1J for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 13:21:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgtyv-0003SK-UV for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 13:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2020 18:21:01 +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: patch Original-Received: via spool by 43558-submit@debbugs.gnu.org id=B43558.160606920713162 (code B ref 43558); Sun, 22 Nov 2020 18:21:01 +0000 Original-Received: (at 43558) by debbugs.gnu.org; 22 Nov 2020 18:20:07 +0000 Original-Received: from localhost ([127.0.0.1]:48249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgty2-0003QE-Ou for submit@debbugs.gnu.org; Sun, 22 Nov 2020 13:20:06 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:33315 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1kgty0-0003PS-OY for 43558@debbugs.gnu.org; Sun, 22 Nov 2020 13:20:06 -0500 Original-Received: (qmail 67563 invoked by uid 3782); 22 Nov 2020 18:19:58 -0000 Original-Received: from acm.muc.de (p2e5d52bc.dip0.t-ipconnect.de [46.93.82.188]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 22 Nov 2020 19:19:57 +0100 Original-Received: (qmail 12373 invoked by uid 1000); 22 Nov 2020 18:19:57 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) 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:193860 Archived-At: Hello, Dmitry. On Sun, Nov 22, 2020 at 19:46:24 +0200, Dmitry Gutov wrote: > On 22.11.2020 19:08, Alan Mackenzie wrote: > > Really? Are there any other programming language modes whose comments > > syntax.c cannot handle without syntax-table text properties? > Ruby is just one example. Thanks. I've just searched the web for that. Ruby has block comment delimiters =begin and =end. It would be possible to handle these in syntax.c, but somewhat clumsy and awkward. Presumably ruby-mode handles these with syntax-table text properties applied to the = sign and the terminating d, which is a little clumsy, but not too bad, at the Lisp level. -- Alan Mackenzie (Nuremberg, Germany).