GNU bug report logs - #19080
24.4; wish: enable show-paren-mode to highlight matching same-level keywords

Previous Next

Package: emacs;

Reported by: Josh Berdine <josh <at> berdine.net>

Date: Mon, 17 Nov 2014 14:03:03 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 19080 <at> debbugs.gnu.org (full text, mbox):

From: Josh Berdine <josh <at> berdine.net>
To: Eli Zaretskii <eliz <at> gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 Yuan Fu <casouri <at> gmail.com>
Cc: 19080 <at> debbugs.gnu.org
Subject: Re: bug#19080: 24.4; wish: enable show-paren-mode to highlight
 matching same-level keywords
Date: Fri, 13 May 2022 12:48:25 +0100
>> I think, that adding tree-sitter “backend” needs refactoring existing code non-trivially.
> 
> 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=19079 . 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.



This bug report was last modified 3 years and 69 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.