GNU bug report logs -
#60105
[PATCH] Add yaml-ts-mode
Previous Next
Reported by: Randy Taylor <dev <at> rjt.dev>
Date: Thu, 15 Dec 2022 22:21:01 UTC
Severity: normal
Tags: patch
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 60105 <at> debbugs.gnu.org (full text, mbox):
>> But what I propose is to add a customizable option to enable/disable
>> font-lock-string-face on most text to lessen the color burden on users.
>
> I think using treesit-font-lock-recompute-features is the way to
> adjust which features you want, and is what is expected for cases like
> this (but Yuan would know best).
The reason why I proposed a new customizable option is because
ruby-ts-mode provides an option ruby-ts-highlight-predefined-constants
that enables some rules in ruby-ts--font-lock-settings. But maybe
there is no way to avoid this fine-grained setting in ruby-ts-mode.
But you are right that (treesit-font-lock-recompute-features '() '(string))
is the right way to customize it.
> Alternatively, treesit-font-lock-level dictates which level of
> features should be included for highlighting. The default is level 3,
> and string is on level 2. We can move string to the 4th level, which
> may be an OK compromise?
It would be nice if you will decide to move 'string' to the 4th level
by default since the 4th level is intended for maximal fontification.
This bug report was last modified 2 years and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.