emacs-devel
[Top][All Lists]
Advanced

[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


reply via email to

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