GNU bug report logs -
#66666
30.0.50; Feedback on treesit-font-lock-level
Previous Next
Full log
View this message in rfc822 format
> On Oct 21, 2023, at 7:16 AM, Augusto Stoffel <arstoffel <at> gmail.com> wrote:
>
> The docstring of treesit-font-lock-level says:
>
> Level 1 usually contains only comments and definitions.
>
> As a user of minimal fontification, I don't find this very appealing.
> IMO, the lowest fontification level should allow distinguishing code
> from non-code, and therefore fontify comments and strings, and nothing
> else.
That’s a fair point, and I don’t have strong opinions of what minimal level of font-lock should include. The default value is derived from my observation of the (few) existing major modes that support font-lock levels.
Since this isn’t a technical issue but rather a subjective one, perhaps you can bring it up to emacs-devel and have a discussion there. If the consensus agrees with you, then we can change the default value.
If you just want to make it work for yourself, you can use treesit-font-lock-recompute-features to add/remove features you desire.
Yuan
This bug report was last modified 1 year and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.