[Top][All Lists]

[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]