[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 15:17:25 -0700 |
> I believe that history suggests that a better approach is "fontify everything
> and provide a setting that gives most of them the same appearance", assuming
> that the combination of tree-sitter and fontification is performant enough.
I think toggling on/off is easier for the users to understand and configure.
> This also enables some interesting features that were tried way back in the
> days of hilit19 like "transiently highlight everything of *this* type, but
> not all types". Somewhat like how isearch (occur, et al) can highlight
> literal duplicates, but based on shared semantic properties instead.
You mean “transiently highlight all variable names”? What would be a use-case
of that? I’m only aware of “highlight all appearance of _this_ variable”, which
is provided by IDEs and LSP.
> I couldn't tell you offhand if the current tree-sitter performance for
> fontification is strong enough for this sort of thing or not, and I suspect
> the noverlay branch also has some impact here.
Tree-sitter is pretty fast and we don’t need to worry about “too-much
fontification”.
Yuan
- Re: Tree-sitter integration in python.el, (continued)
- Re: Tree-sitter integration in python.el, Yuan Fu, 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/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 <=
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/07
- 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