emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial fontification in sh-mode with tree-sittter


From: Yuan Fu
Subject: Re: Initial fontification in sh-mode with tree-sittter
Date: Fri, 28 Oct 2022 10:44:07 -0700


> On Oct 28, 2022, at 9:15 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 
> Stefan Kangas [2022-10-28 08:57:07] wrote:
>> João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com> writes:
>>> +    (setq-local treesit-font-lock-feature-list
>>> +                '((basic) (moderate) (elaborate)))
>> I see that most modes on the branch seem to be using those three symbols
>> for now.
> 
> Indeed, it's sad.  It's goes against the idea being
> `treesit-font-lock-feature-list` which is to map features to levels.
> 
> It doesn't make much sense to call a highlight feature "moderate".
> Highlight feature names should be things like "function names", "nested
> functions", "multiline docstrings", "punctuation”.

Yeah it’s a kind of placeholder, plus a test for font-lock-maximum-decoration. 
I plan to refine it once I’m done with more pressing problems.

Yuan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]