[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-tree-sitter and Emacs
From: |
Stefan Monnier |
Subject: |
Re: emacs-tree-sitter and Emacs |
Date: |
Mon, 30 Mar 2020 10:11:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> First off, in the issue tracker we have a ticket open for making this
> project available on GNU ELPA, Ubolonton seems willing to make that
> a reality
That would be neat.
> but this package has some special requirements that would make
> impossible to submit it to GNU ELPA or MELPA, for instance, we need to
> ship with grammars for some languages that require compiling and AFAIK
> there is no way to build external dependencies in *ELPA.[1]
Indeed, the GNU ELPA infrastructure is too weak to support such a thing
right now, but that's a problem we need to fix anyway, so it just means
we should work on it.
> Finally, I'm planning to tackle indentation for my next pull request.
> It come as a surprise that Emacs has no "central" indentation engine
> but that instead each major mode ships with its own indentation
> engine.
It's not so surprising if you think about it: indentation requires
parsing, so "a central indentation engine" requires something like
tree-sitter ;-)
SMIE is the closest there is so far (contrary to tree-sitter it uses
a very simple parsing strategy, which is just barely sufficient for
"typical" indentation cases).
CC-mode has another engine, which is used for several languages.
And finally, there's `wisi` on GNU ELPA, it aims to be very generic and
pretty flexible, but AFAIK it's only used by `ada-mode` so far.
Stefan
- emacs-tree-sitter and Emacs, Jorge Javier Araya Navarro, 2020/03/30
- Re: emacs-tree-sitter and Emacs, Eli Zaretskii, 2020/03/30
- Re: emacs-tree-sitter and Emacs,
Stefan Monnier <=
- Re: emacs-tree-sitter and Emacs, Jorge Javier Araya Navarro, 2020/03/30
- Re: emacs-tree-sitter and Emacs, Stefan Monnier, 2020/03/30
- Re: emacs-tree-sitter and Emacs, Jorge Javier Araya Navarro, 2020/03/30
- Re: emacs-tree-sitter and Emacs, Stefan Monnier, 2020/03/30
- Re: emacs-tree-sitter and Emacs, Stephen Leake, 2020/03/31