[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter integration in python.el
From: |
Yuan Fu |
Subject: |
Re: Tree-sitter integration in python.el |
Date: |
Sat, 15 Oct 2022 16:15:36 -0700 |
> On Oct 12, 2022, at 10:55 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Wed, 12 Oct 2022 16:43:30 -0700
>> Cc: Eli Zaretskii <eliz@gnu.org>,
>> Augusto Stoffel <arstoffel@gmail.com>,
>> Matthias Meulien <orontee@gmail.com>,
>> emacs-devel@gnu.org
>>
>> What are some suggestions for kind names? We could provide the common ones
>> in the doctoring so major modes use the same names for them. I can think of:
>> function, type, keyword, constant, builtin, string-interpolation, escape,
>> assignment-lhs, macro, preprocessor, string, comment, hmmm… this list is
>> extremely similar to font-lock-faces…
>
> Exactly. So how about just taking the list from the font-lock-faces?
> We can always add some more later, if we find it necessary.
I have implemented this, but renamed :kind to :feature. See
treesit-font-lock-rules and treesit-font-lock-feature-list.
Yuan
- Re: Tree-sitter integration in python.el, (continued)
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/08
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/08
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/09
- Re: Tree-sitter integration in python.el, Stefan Monnier, 2022/10/11
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/12
- Re: Tree-sitter integration in python.el, Stefan Monnier, 2022/10/12
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/12
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/12
- Re: [SPAM UNSURE] Re: Tree-sitter integration in python.el, Stephen Leake, 2022/10/12
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/13
- Re: Tree-sitter integration in python.el,
Yuan Fu <=
- Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/08
- RE: [External] : Re: Tree-sitter integration in python.el, Drew Adams, 2022/10/08
- Re: [External] : Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/10
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/08
- Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/10
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/10
- Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/10
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/12
- Re: Tree-sitter integration in python.el, Stefan Monnier, 2022/10/11
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/04