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: Matthias Meulien
Subject: Re: Tree-sitter integration in python.el
Date: Tue, 04 Oct 2022 00:35:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Yuan Fu <casouri@gmail.com> writes:

> (...)  I’ve added tree-sitter version for font-lock and which-func in
> python.el. And I’d love to hear some feedback from python.el
> maintainers. Specifically, does it look right and which other part of
> python.el could actually benefit from a parse tree? I wrote a
> tree-sitter imenu indexer for python and it performed worse than the
> current one, presumably because it traverses the whole parse tree
> whereas the current one only scans the buffer once or so and do some
> regex matching.
>
> Here is the commit: 
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=feature/tree-sitter&id=1cdb24fe35a9ff2e4f92c5acc93a5a5b0e70d93f
>
> Yuan

Boolean and comparison operators like in, is, and, not aren't fontified
anymore.  See attached screenshot.

PNG image


-- 
Matthias

reply via email to

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