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: Sat, 17 Jun 2023 05:00:24 +0300 Message-ID: <66e6d003-8822-962d-c3c0-3636ee1b03a3@gutov.dev> References: <87o7lkzrj1.fsf@epfl.ch> <1959ea93-0ca3-59cd-3abb-e841bd337c57@gutov.dev> <87fs6vbgla.fsf@epfl.ch> <87ilbo4pcm.fsf@epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40111"; 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: Randy Taylor , Yuan Fu , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Theodor Thornhill , 64019@debbugs.gnu.org, Daniel Colascione To: Basil Contovounesios Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 17 04:01:15 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 1qALFa-000AH2-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jun 2023 04:01:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qALFQ-0006X2-Dx; Fri, 16 Jun 2023 22:01: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 1qALFO-0006Wl-Nv for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 22:01: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 1qALFO-0006SW-FG for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 22:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qALFO-0003jz-3J for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 22:01: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: Sat, 17 Jun 2023 02:01: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.168696723914343 (code B ref 64019); Sat, 17 Jun 2023 02:01:02 +0000 Original-Received: (at 64019) by debbugs.gnu.org; 17 Jun 2023 02:00:39 +0000 Original-Received: from localhost ([127.0.0.1]:50639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qALF0-0003jG-NG for submit@debbugs.gnu.org; Fri, 16 Jun 2023 22:00:38 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:58449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qALEy-0003j3-6K for 64019@debbugs.gnu.org; Fri, 16 Jun 2023 22:00:37 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1218E32001E9; Fri, 16 Jun 2023 22:00:29 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 16 Jun 2023 22:00:29 -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= 1686967228; x=1687053628; bh=sVrfwhrYtBTJ7PnF7FpsNcClU1PlVy4461L G5zK/egM=; b=ngWRdTboUFnP6wNYyr1OKdbD7U+jKlGD5U7JFPcipHlSwp9UPN3 a940tjNcgeuq/T19h12o28ja9z3+/Z1qKJyqP7AttXoJetYxv/T+qYfzDEVSBsLh CW5cmbMNbeSg4WWa5T/8tHKXh03tlUng3vWjJbj8KX8GPP8PcQHqp/fQ2qFT10SY uf5c30scRUaqDMgCE5M9O6Bgv9f7wbxss49Iy8yCC3dFpYXTOe/mtGQ1SY+HoXo3 Ru8FhJtAoH/FhaHXUKR+Cad9zvfWRYXFv8/NncxSyGGE5aguM2XV5UNDBDH+KEo3 y+oknENRyufYHLz67ztTniGdvGIFfAN47WQ== 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= 1686967228; x=1687053628; bh=sVrfwhrYtBTJ7PnF7FpsNcClU1PlVy4461L G5zK/egM=; b=j0p5Hyn3Mv2O/O1dJ5Xi1Zayk/Y+Mm5z03zWSkC3KYpgMHrU+NM qVXYoN5laQ5c758a9HJj2THvZ9tLTzyiXxjUpGTc7hxBOR2pPs9o/I7mJc6mmIli UO61B7wS645E0z8WCP88ZrqLvo/lrXDyhnv8xCB0usCrnbxuQhr9+CJM7Wz7PsRI 1PGbe8+RsqSO0LXfsh3CqVAcs5UMyyQ0NU6jixsyFOUrFqpC6MwA/q3IXXah9pcJ 6Dfczy6OoTbXC4UFgRCiCivfonq5a+DG0I15kXBfOmEM2gm1byiDjjFOzlA9zYV2 TCMmmau2HCtau0PJhlvbYNbfPN5Y+VMchZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedviedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephffhleeifffgveevudeugfeifeeuffevgfeutdeitefhiefgtedvheeuvedv vdefnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Jun 2023 22:00:26 -0400 (EDT) Content-Language: en-US In-Reply-To: <87ilbo4pcm.fsf@epfl.ch> 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:263495 Archived-At: On 15/06/2023 20:17, Basil Contovounesios wrote: > Mattias also spotted the following in > https://github.com/mattiase/relint/pull/14: > > - (:match "\\`?[#\"'`:?]" @char)) > + (:match "\\`\\?[#\"'`:?]" @char)) I don't mind, but it seems like both versions do the same thing: (string-match-p "\\`?!" "?!") => 0 (string-match-p "\\`?!" "!") => nil Same results with "\\`\\?!".