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:45:05 -0700


> On Oct 28, 2022, at 10:37 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 
>> For instance, if we are creating features such as "function names", "nested
>> functions", and "punctuation" does it still make sense to have something
>> like `font-lock-maximum-decoration'? Because, it is not clear to me how we
>> can say that fontifying "multiline docstrings" is a *higher* decoration
>> than fontifying "function names".
> 
> The point of the design is that, while the details are murky, we can
> make a "best effort" choice to map feature names to levels in
> `treesit-font-lock-feature-list`.
> 
> This way, users can set a vague global "level" preference as a good
> baseline, which they can more finely tune according to their own
> preference by controlling individual features for specific modes.

I should probably add some convenient functions user can use to add/remove 
feature from that list, since its not a plain list, but rather a list of list.

Yuan


reply via email to

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