GNU bug report logs - #61275
c-ts-mode: (eq treesit-font-lock-level 2) doesn't fontify parameter names.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Sat, 4 Feb 2023 16:28:01 UTC

Severity: normal

Fixed in version 29.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: acm <at> muc.de, Theodor Thornhill <theo <at> thornhill.no>,
 Yuan Fu <casouri <at> gmail.com>
Cc: 61275 <at> debbugs.gnu.org
Subject: Re: bug#61275: c-ts-mode: (eq treesit-font-lock-level 2) doesn't
 fontify parameter names.
Date: Sat, 04 Feb 2023 19:20:01 +0200
> Cc: 61275 <at> debbugs.gnu.org
> Date: Sat, 04 Feb 2023 19:13:43 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Date: Sat, 4 Feb 2023 17:00:45 +0000
> > Cc: 61275 <at> debbugs.gnu.org
> > From: Alan Mackenzie <acm <at> muc.de>
> > 
> > > By "the definition of bar", do you mean this:
> > 
> > >     int foo (int bar)
> > >                  ^^^
> > 
> > Yes, that's precisely what I meant.
> 
> I believe this is known as "parameter declaration".

More accurately, you want the parameter identifiers which are part of
parameter declarations to be fontified using the
font-lock-variable-name-face.

I hope Yuan or Theo could look into this soon.




This bug report was last modified 2 years and 104 days ago.

Previous Next


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