From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped. Date: Sun, 22 Nov 2020 18:10:05 -0500 Message-ID: References: <20200923144824.GD6178@ACM> <20200924102022.GA4714@ACM> <20201119211822.GE6259@ACM> <20201122131231.GB5912@ACM> <20201122170830.GD5912@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8835"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43558@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 00:12:26 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 1kgyWw-0002DN-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 00:12:26 +0100 Original-Received: from localhost ([::1]:38732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgyWv-00073F-2r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 18:12:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgyVa-0005x5-0b for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 18:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgyVZ-000059-PG for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 18:11:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgyVZ-0004N7-IQ for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2020 23:11: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.160608662216758 (code B ref 43558); Sun, 22 Nov 2020 23:11:01 +0000 Original-Received: (at 43558) by debbugs.gnu.org; 22 Nov 2020 23:10:22 +0000 Original-Received: from localhost ([127.0.0.1]:48511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgyUp-0004M6-LF for submit@debbugs.gnu.org; Sun, 22 Nov 2020 18:10:21 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgyUn-0004Lr-Lr for 43558@debbugs.gnu.org; Sun, 22 Nov 2020 18:10:13 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6958E80DFB; Sun, 22 Nov 2020 18:10:08 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F132E806A5; Sun, 22 Nov 2020 18:10:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1606086606; bh=qQagWx9/AfamWuep69H9GumZZk4PHaQsIPw5nfzV8Gw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TWYy5X4Aawfs5c2/DT//tWAsR3dez6oNLMV0vpiGK8RY/E288nYFyd6fH2QImUyBt f7/Bgi1cipClB8Ey6c45zzCnGcHhGigrhIECKNy+CFM2N44ClWC28YkP5SQ5DdtaqW LmhUDFXgF3zwgK6JsR/bYADUvdw0g1z0C8Lohv7u7UGY/chX02SVHuB4kYIJKp66UT rLJTIZVMX+ckFCvD232n5M1lPY6hao8IH5jDasZop0P9ee7qltX5kNOzZSaRBnF8nw eYA3NYXrQPo61w6mtqjOynvZfiJwv0pGSyvcSDs7uOmO9aLyoJ1+l/qkGEIOOrriGE gZfuaLPjXNr+A== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BA23B12037C; Sun, 22 Nov 2020 18:10:06 -0500 (EST) In-Reply-To: <20201122170830.GD5912@ACM> (Alan Mackenzie's message of "Sun, 22 Nov 2020 17:08:30 +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:193885 Archived-At: > Really? Are there any other programming language modes whose comments > syntax.c cannot handle without syntax-table text properties? Yes, a fair number. Beside the ones that use "long" delimiters, there are some that put restrictions about where a comment can start (e.g. the # in `sh` is a normal character when it appears within a word), there's Scheme's #;(...) "sexp comment" (which we still don't actually handle correctly), there are cases where there are too many different syntaxes (e.g. in Pascal you can have (*...*), /*...*/, //...\n and then Emacs concludes that `(/` is also a valid comment starter), ... Stefan