[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter integration in python.el
From: |
Eli Zaretskii |
Subject: |
Re: Tree-sitter integration in python.el |
Date: |
Sun, 09 Oct 2022 07:13:22 +0300 |
> From: Yuan Fu <casouri@gmail.com>
> Date: Sat, 8 Oct 2022 13:57:19 -0700
> Cc: arstoffel@gmail.com,
> orontee@gmail.com,
> emacs-devel@gnu.org
>
> > I think having tree-sitter respect font-lock-maximum-decoration would
> > be good, because it allows a major-mode agnostic way of controlling
> > fontifications. With tree-sitter in mind, we'd need to agree on what
> > kind of syntactic entities are included in each level (which is also a
> > Good Thing, because currently what is level N of font-lock is entirely
> > up to the major-mode, AFAIU).
>
> I think it is difficult to define syntactic entities for each level such that
> it is generally enough to include all kinds of major mode out there, and
> specific enough to be useful. It is easy for common programming languages,
> but hard for others like html, css, prolog, etc.
I don't think it should be hard. At worst, we will find that HTML,
CSS, etc. have fewer syntactic entities than programming languages, so
maybe they will have fewer meaningful levels.
> My impression of the levels are 1 for absolute minimum, 2 for moderate, and 3
> for maximum.
Right.
> Perhaps rough guidelines like this could be more helpful than specifying
> syntactic entities for each level.
We could come up with such guidelines, yes.
- Re: Tree-sitter integration in python.el, (continued)
- 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
- 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 <=
- 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
- Re: Tree-sitter integration in python.el, Eli Zaretskii, 2022/10/13
- Re: Tree-sitter integration in python.el, Yuan Fu, 2022/10/15
- Re: Tree-sitter integration in python.el, Augusto Stoffel, 2022/10/08
- RE: [External] : Re: Tree-sitter integration in python.el, Drew Adams, 2022/10/08