From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#64019: 29.0.91; Fix some tree-sitter :match regexps Date: Tue, 13 Jun 2023 20:06:23 +0300 Message-ID: <9cc7ee76-2064-137b-42d8-3b1b3eb09164@gutov.dev> References: <87352w4syg.fsf@epfl.ch> <3f2cb16e-357e-d84a-bfd6-348476e8677c@gutov.dev> <90178919-BA9C-439E-9F54-F73FFE9C3414@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26945"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: Basil Contovounesios , 64019@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 13 19:07:19 2023 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 1q97UE-0006pA-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Jun 2023 19:07:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q97U0-0006P4-4P; Tue, 13 Jun 2023 13:07:04 -0400 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 1q97Ty-0006OO-Hd for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:07:02 -0400 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 1q97Ty-0002L7-9R for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q97Ty-0007eH-4G for bug-gnu-emacs@gnu.org; Tue, 13 Jun 2023 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Jun 2023 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64019-submit@debbugs.gnu.org id=B64019.168667599429344 (code B ref 64019); Tue, 13 Jun 2023 17:07:02 +0000 Original-Received: (at 64019) by debbugs.gnu.org; 13 Jun 2023 17:06:34 +0000 Original-Received: from localhost ([127.0.0.1]:42958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q97TW-0007dD-H7 for submit@debbugs.gnu.org; Tue, 13 Jun 2023 13:06:34 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:56603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q97TV-0007cz-43 for 64019@debbugs.gnu.org; Tue, 13 Jun 2023 13:06:33 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 0AE483200960; Tue, 13 Jun 2023 13:06:26 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 13 Jun 2023 13:06:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1686675986; x=1686762386; bh=U6qn91/Sjh3NRtcFpdy3P6f737jXd7znkkO WNHjUaiY=; b=IE3rszcp37MV+7RPHDQKK8p2Xg6LhQF5lkaxzWIkdI/aQ1PeZz3 BsoiPl5n6+PN44b9pZkF1SEUV4ixb/C+/vL4G17+uSy0nMa/ZdCJeoeihU6NRIl+ Gl/lO4sXVjMgqUJmKc8hjMUF9aUuwdUm+oIRnb9sFAWOq9Mn8UFzN9bKPYARUUHy pgmhtN70kSWG57b7nvrIThr9K9hMpfo5aIIQ3vDxDCoVnAcaeWdpJ7JsL2A3MuaI noO2DIGd7zgZL9w0kPTJf83ZysHnIwkCODaPffKE2XggHPPVHJMlu+xodMY3fkuc UsQUz1PpM5tIg1XnnZJs1J0Xa6e4PPsvp1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1686675986; x=1686762386; bh=U6qn91/Sjh3NRtcFpdy3P6f737jXd7znkkO WNHjUaiY=; b=K58ImeZRHi71HlwGWN6An1dkb9P0tZ2YDK8j5dt7B4SgCpGwaY4 yuwiUsTKAq8vqX9Md2d0NMCf+RIlhzCpwZ9d6qmVaREGl0lUkdNCtV83T2pxHYXT rHjMMQ8CLC626Qry2gNSnDOSLS0jfHUxEYFtxqBK8kpFgL3d8zAEBXefh48dGhnY CPFC8KqHx8GRl6ZfLmBJUfvIrsI5Bl+TA8zpdmq18PyNeFEwrbDtZQHbL3BQFsng nbJogeJmlP40JqScVA5Gp0o6oVkNlQXYpPiZncDn4dHyeZCmRZ2Xg5aIOWIjo0w/ 3GLMseSFLzGC2l3IS3ZbysA0V+DlhjQlenw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedujedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffg feejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Jun 2023 13:06:25 -0400 (EDT) Content-Language: en-US In-Reply-To: <90178919-BA9C-439E-9F54-F73FFE9C3414@gmail.com> 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:263337 Archived-At: On 13/06/2023 10:47, Mattias EngdegÄrd wrote: > 12 juni 2023 kl. 23.39 skrev Dmitry Gutov: > >> On 12/06/2023 19:07, Mattias EngdegÄrd wrote: >>> I particularly like the bug in several of the modes that will colour ABCd as a constant, but not ABCe or ABC2, despite the obvious intention that only the last should have that face. >> Could you point to some relevant part of the patch? > The ones replacing \d with 0-9: > > - (:match "^[A-Z_][A-Z_\\d]*$" @font-lock-constant-face)) > + (:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face)) > Makes sense, thanks.