[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list
From: |
Yuan Fu |
Subject: |
bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list |
Date: |
Thu, 2 Feb 2023 18:38:37 -0800 |
> On Feb 2, 2023, at 12:25 PM, Dmitry Gutov <dgutov@yandex.ru> wrote:
>
> On 01/02/2023 07:18, Yuan Fu wrote:
>>> On Jan 31, 2023, at 6:08 PM, Dmitry Gutov<dgutov@yandex.ru> wrote:
>>>
>>> X-Debbugs-Cc: Yuan Fu<casouri@gmail.com>, Randy Taylor<dev@rjt.dev>
>>>
>>> Some new built-in modes has 'function' feature highlighting thus enabled by
>>> default.
>>>
>>> rust-ts-mode, go-ts-mode, cmake-mode
>>>
>>> Should we move it to 4 for consistency with the rest?
>>>
>>> Previously, we talked about that and concluded that function calls are
>>> usually everywhere and are easy to notice without additional highlighting.
>> Right, I think they should be level 4.
>
> On a related note: 'property' is in level 3 in c-ts-mode.
>
> Should it to go level 4?
I believe property is level 3. Quoting the (emacs) manual:
Level 1
This level usually fontifies only comments and function names in
function definitions.
Level 2
This level adds fontification of keywords, strings, and data types.
Level 3
This is the default level; it adds fontification of assignments,
numbers, properties, etc.
Level 4
This level adds everything else that can be fontified: operators,
delimiters, brackets, other punctuation, function names in function
calls, variables, etc.
Yuan
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Yuan Fu, 2023/02/01
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/01
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/02
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list,
Yuan Fu <=
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Eli Zaretskii, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Eli Zaretskii, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Eli Zaretskii, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Dmitry Gutov, 2023/02/03
- bug#61205: 'function' in 3rd element of treesit-font-lock-feature-list, Eli Zaretskii, 2023/02/04