[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Initial fontification in sh-mode with tree-sittter
From: |
Stefan Monnier |
Subject: |
Re: Initial fontification in sh-mode with tree-sittter |
Date: |
Fri, 28 Oct 2022 13:37:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> 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.
Stefan
- 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 <=
- Re: Initial fontification in sh-mode with tree-sittter, Yuan Fu, 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, 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