GNU bug report logs - #71209
[PATCH] Add font-locking for variables in go-ts-mode range clauses

Previous Next

Package: emacs;

Reported by: Noah Peart <noah.v.peart <at> gmail.com>

Date: Sun, 26 May 2024 12:43:01 UTC

Severity: wishlist

Tags: patch

Full log


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

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Noah Peart <noah.v.peart <at> gmail.com>, Randy Taylor <dev <at> rjt.dev>
Cc: 71209 <at> debbugs.gnu.org
Subject: Re: bug#71209: [PATCH] Add font-locking for variables in go-ts-mode
 range clauses
Date: Fri, 31 May 2024 02:23:24 +0300
On 30/05/2024 16:25, Noah Peart wrote:
>  > it seems we already highlight this when at treesit-font-lock-level 4?
> 
> They get highlighted with `font-lock-variable-use-face` at level 4, but 
> shouldn't
> they be getting `font-lock-variable-name-face` in the 'definition feature?

I think that's a good idea: the local variables idx and val are 
introduced on that line, so we could indeed call those occurrences 
"definitions".




This bug report was last modified 114 days ago.

Previous Next


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