[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:47:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yuan Fu <casouri@gmail.com> writes:
>> On Oct 3, 2022, at 3:19 PM, Matthias Meulien <orontee@gmail.com> wrote:
>> (...) At first sight, moving commands and imenu seems to work as
>> expected. Fontification too.
>
> I didn’t modify and move commands. There are a lot of them and I don’t
> know if tree-sitter would bring any improvement. Imenu and font-lock
> are indeed powered by tree-sitter.
Ok. Thanks for clarifying.
>> I saw small differences between buffers fontified with
>> `python-use-tree-sitter' equal to nil and t. Attached is a screenshot
>> where one can see two such differences (the third tall buffer shows the
>> output of "tree-sitter highlight"):
>>
>> - line 284: The self attribute
>
> Why is the _url attribute highlighted? Other attributes don’t seem to
> be highlighted.
I guess it's because it is on the left hand side of an assignment.
>> - line 296: The variable in the f-string
>
> That is expected? I added that to add a bit of flair to tree-sitter
> font-lock ;-)
I like it.
--
Matthias
- Re: Tree-sitter integration in python.el, Matthias Meulien, 2022/10/03
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/03
- Re: Tree-sitter integration in python.el, Matthias Meulien, 2022/10/03
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/03
- Re: Tree-sitter integration in python.el,
Matthias Meulien <=
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/05
- Re: Tree-sitter integration in python.el, Matthias Meulien, 2022/10/06
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/06
- Re: Tree-sitter integration in python.el, Matthias Meulien, 2022/10/06
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/07
- Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/07
- Re: Tree-sitter integration in python.el, chad, 2022/10/07
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/07
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/07
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/07