emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter integration on feature/tree-sitter


From: Theodor Thornhill
Subject: Re: Tree-sitter integration on feature/tree-sitter
Date: Sun, 08 May 2022 11:19:31 +0200



On 8 May 2022 11:10, Eli Zaretskii <eliz@gnu.org> wrote:

> From: Theodor Thornhill <theo@thornhill.no>
> Cc: casouri@gmail.com, emacs-devel@gnu.org
> Date: Sun, 08 May 2022 11:02:10 +0200
>
> Ok, see the attached patch.  This makes the normal js-mode support tree
> sitter.
>
> Some caveats.
>
> 1. You need to install the tree sitter parser.  Use Yuans
> tree-sitter-module [1] project for this

Why is that module needed, and where is it (it seems like the
reference was missing from your message)?

Yeah, added it to another mail, sorry!

You need the parser on a path emacs can see. Either we need to implement some generic parser installation functions in emacs, or we need this module or others like it. It compiles the grammar and creates a shared object that is read by emacs tree sitter. This is the tedious and error prone part. 

I know emacs stance on anything nodejs related, so my guess is that this will go into nongnu elpa. Or we leave the parser creation to the public. 

What do you think is best? 
Theo

reply via email to

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