[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
- Re: Initial fontification in sh-mode with tree-sittter, (continued)
Re: Initial fontification in sh-mode with tree-sittter, Stefan Kangas, 2022/10/27
Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, Stefan Kangas, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, Stefan Monnier, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, Theodor Thornhill, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, João Paulo Labegalini de Carvalho, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, Stefan Monnier, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter,
Yuan Fu <=
- Re: Initial fontification in sh-mode with tree-sittter, Stefan Monnier, 2022/10/28
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/10/31
- Re: Initial fontification in sh-mode with tree-sittter, Stefan Monnier, 2022/10/31
Re: Initial fontification in sh-mode with tree-sittter, Augusto Stoffel, 2022/10/29
Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 2022/10/28