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 #15 received at 19080 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Yuan Fu <casouri <at> gmail.com>
Cc: 19080 <at> debbugs.gnu.org, josh <at> berdine.net
Subject: Re: bug#19080: 24.4;
 wish: enable show-paren-mode to highlight matching same-level keywords
Date: Thu, 12 May 2022 08:36:18 +0300
> Cc: 19080 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 12 May 2022 03:44:43 +0200
> 
> > This starts a fresh emacs, loads the tuareg mode, enables
> > show-paren-mode, enters some ocaml code, and puts the point on a 'let'
> > keyword.
> >
> > In this situation, it would be helpful if the 'let' and corresponding
> > 'in' were highlighted in 'show-paren-match-face'.  And similarly for
> > "fun", "if", "match", and "try".
> 
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
> 
> I think this is rather beyond the scope of show-paren-mode (which is a
> pretty simple mode that just blinks parentheses, and not much more).

Indeed.

> A new different mode that relies on language semantics to identify
> these things would be nice, but I don't think there's anything
> actionable to be done here, so I'm closing this bug report.

We could perhaps add a new feature, based on tree-sitter, to highlight
a block of code, where the block is defined by PL rules, not by
parens, braces, and similar simple syntactic elements.

Yuan, WDYT?  Can this be added to the tree-sitter branch perhaps?




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

Previous Next


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