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: Fri, 7 Oct 2022 01:25:27 -0700


> On Oct 6, 2022, at 1:53 PM, Matthias Meulien <orontee@gmail.com> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
>> (...)  Oops, I merged the master again and ran git clean -xf followed
>> by make bootstrap, which compiled successfully. Something in the
>> tree-sitter branch requires a git clean to build after merging master,
>> it seems.
> 
> Thank you, compilation is fixed.
> 
> I confirm that you also fixed the fontification problems I saw!
> 
> Would the integration of tree-sitter help to implement an option to have
> all types fontified?  Now that it's becoming more popular to uses type
> hints in Python code, it may improve code readability to have all types
> fontified.
> -- 
> Matthias

Yeah, with tree-sitter, fortifying types is trivial. In fact all types should 
be fortified already. (I tested with some simple examples.) Should we provide 
some variables to toggle fontification for different things? Like 
python-fontify-type/f-string/assignment/built-in/etc. 

Yuan


reply via email to

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