From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Josh Berdine Newsgroups: gmane.emacs.bugs Subject: bug#19080: 24.4; wish: enable show-paren-mode to highlight matching same-level keywords Date: Fri, 13 May 2022 12:48:25 +0100 Message-ID: <8164837F-1011-4DF5-B875-0BA30317559A@berdine.net> References: <878ujat60c.fsf@berdine.net> <87lev734ok.fsf@gnus.org> <8335hfqpm5.fsf@gnu.org> <83k0aqnfm5.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 19080@debbugs.gnu.org To: Eli Zaretskii , Lars Ingebrigtsen , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 13:49:11 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 1npTnC-0008ZD-15 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 13:49:11 +0200 Original-Received: from localhost ([::1]:59546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npTnB-0002tl-1V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 07:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npTn4-0002tP-Vs for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 07:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npTn4-0000il-N2 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 07:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npTn4-0005PW-Ja for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 07:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Josh Berdine Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2022 11:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 19080-submit@debbugs.gnu.org id=B19080.165244251420745 (code B ref 19080); Fri, 13 May 2022 11:49:02 +0000 Original-Received: (at 19080) by debbugs.gnu.org; 13 May 2022 11:48:34 +0000 Original-Received: from localhost ([127.0.0.1]:43044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npTmc-0005OX-7c for submit@debbugs.gnu.org; Fri, 13 May 2022 07:48:34 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npTma-0005OD-SS for 19080@debbugs.gnu.org; Fri, 13 May 2022 07:48:33 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BB1D05C0145; Fri, 13 May 2022 07:48:27 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 13 May 2022 07:48:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berdine.net; h= cc:cc:content-transfer-encoding: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=1652442507; x= 1652528907; bh=ArOYIVhQwutkpjEEcxwrMnSeR7JmY5lmSw1thaU5ZBM=; b=y sTThLm2wR1jIMtjm/0gs0LNNte/g1vwKVIv0sSMNDg2CY2iebwe4IM3i4DdN7K8E zpUJeCnRSH3qh/MlKNF126g4heC4cjhKHxfXUw2tsaHZbxcOACFa7/iHJIpx3GW9 w0Qmh6jyahz49W9uEfrpumPxus9y4NqTwzO9sTZiU05yPEpxRTgunaeElWmznjgx XF+gVmW8OpCK76Ui2JVO9cUZRPbR/6kwMFa7zIy1AW07CwrRfaOkJATD4U+I06JW 2en6YJ+TiAb/a66uNmWId2icmlNDh2BSMxB++I6xPUBl1aX2ZWt0fzQ/8/FO4m6H x5ZsC0AqzKz72Alnu4PwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date: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=fm1; t=1652442507; x=1652528907; bh=ArOYIVhQwutkp jEEcxwrMnSeR7JmY5lmSw1thaU5ZBM=; b=Nk4+io36NL+2NAtKoRSOh8vIBZgAK Y4Df2Sn0MUeGf6DvM6FoL98QmrOt6f3LSTnx7lJd7O8B3hgzWJ6mOAg4jMSOFczF w6NR0VynXGGKg3GPLX7UFqG6AnZwgL+sRKXjHKeRW7K7y77bUyhuepzNlKzU6cr7 KGNviPQ1WQ0PvgxrkJVus/yHzITN6DV/0VVZ7apd4YotUVDueEFU6FmDNEKCEUfK LGqHkhIxhegB7FI67gwHdgwYp2vEQ+WquiUhgm/3e7YNcu6L9L5+jG1oO5EmI1NW s8gEzlrCY8SBfHLt+K3M8Cu8Ia9zpN4zpY1FGKlraThjaMlZ7/kRN3gIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeelgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheplfhoshhh uceuvghrughinhgvuceojhhoshhhsegsvghrughinhgvrdhnvghtqeenucggtffrrghtth gvrhhnpeeiudehudeuhfehffeiheefgeeivdevvedtgeelfedvtdfhkeetheeltddutdel gfenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgnhhurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoshhhsegsvghrughi nhgvrdhnvght X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 May 2022 07:48:27 -0400 (EDT) In-Reply-To: <83k0aqnfm5.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) 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:232122 Archived-At: >> I think, that adding tree-sitter =E2=80=9Cbackend=E2=80=9D needs = refactoring existing code non-trivially. >=20 > If show-paren-mode would want to use tree-sitter, it will need > refactoring, yes. Which other packages you envision could benefit > from using tree-sitter? For some context, this originally came up in discussion of https://github.com/ocaml/tuareg/issues/26 and the related = https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19079 . This issue is = about incorrect highlighting due to an smie bug, which tuareg-mode uses. = As far as I understand, the incorrect highlighting prevents implementing = navigation functions e.g. from a `let` to the matching `in`. I expect = that tree-sitter can have a better understanding of the actual code = structure than smie, and so tuareg-mode would be a package that could = benefit. There is an ocaml (the language tuareg-mode supports) grammar = for tree-sitter. I don't have the expertise to volunteer to work on that = though.=