[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Call for volunteers: add tree-sitter support to major modes
From: |
Philip Kaludercic |
Subject: |
Re: Call for volunteers: add tree-sitter support to major modes |
Date: |
Sun, 09 Oct 2022 12:26:09 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
> Some of the popular major modes for which we would like to see
> tree-sitter support in Emacs 29 are:
>
[...]
> emacs-lisp-mode
How much of a priority is using tree sitter for Emacs Lisp? It appears
that this[0] is the grammar implementation, and it currently doesn't
support the following:
Autoload cookies
Definitions (e.g. defun, defvar, defmacro)
As far as I understand, this means that from your list of enhanced
features, the following will either be restricted or not work at all:
- font-lock
- indentation
- imenu
- which-func
Also, when taking a look at the current implementation for Python[1][2],
I cannot but wonder if a few high-level functions/macros should be added
first to make it easier.
One more thing, it looks like the usage of tree-sitter is enabled for
python by toggling `python-use-tree-sitter'. Will every mode now have
this kind of an option? I would hope not...
[0] https://github.com/Wilfred/tree-sitter-elisp
[1]
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el?h=feature/tree-sitter#n953
[2]
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el?h=feature/tree-sitter#n5324
- Re: Call for volunteers: add tree-sitter support to major modes, (continued)
- Re: Call for volunteers: add tree-sitter support to major modes, Yuan Fu, 2022/10/10
- Re: Call for volunteers: add tree-sitter support to major modes, Eli Zaretskii, 2022/10/10
- Re: Call for volunteers: add tree-sitter support to major modes, Theodor Thornhill, 2022/10/10
- Re: Call for volunteers: add tree-sitter support to major modes, Emanuel Berg, 2022/10/10
- Re: Call for volunteers: add tree-sitter support to major modes, Theodor Thornhill, 2022/10/10
- Re: Call for volunteers: add tree-sitter support to major modes, Dmitry Gutov, 2022/10/09
Re: Call for volunteers: add tree-sitter support to major modes,
Philip Kaludercic <=
Re: Call for volunteers: add tree-sitter support to major modes, Eli Zaretskii, 2022/10/09
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Eli Zaretskii, 2022/10/10
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Theodor Thornhill, 2022/10/10
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Yuan Fu, 2022/10/10
- Re: Turing on tree-sitter, Philip Kaludercic, 2022/10/10
- Re: Turing on tree-sitter, Eli Zaretskii, 2022/10/10