emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Call for volunteers: add tree-sitter support to major modes


From: Eli Zaretskii
Subject: Re: Call for volunteers: add tree-sitter support to major modes
Date: Sun, 09 Oct 2022 16:25:17 +0300

> From: Philip Kaludercic <philipk@posteo.net>
> Cc: emacs-devel@gnu.org, Yuan Fu <casouri@gmail.com>
> Date: Sun, 09 Oct 2022 12:26:09 +0000
> 
> >  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

If emacs-lisp-mode cannot be reasonably supported, we can omit it for
now.

> 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

That's a separate discussion, so please start a new thread.



reply via email to

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