emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter and major mode inheritance


From: Eli Zaretskii
Subject: Re: Tree-sitter and major mode inheritance
Date: Sun, 20 Nov 2022 16:42:56 +0200

> Date: Sun, 20 Nov 2022 14:45:59 +0200
> Cc: casouri@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca,
>  theo@thornhill.no
> From: Dmitry Gutov <dgutov@yandex.ru>
> 
> On 20.11.2022 08:51, Eli Zaretskii wrote:
> >> But js2-mode inherits from js-mode (meaning, it will run the same setup
> >> code, and then some of its own), yet it has its own parser. Which will
> >> cause all sorts of conflicts with tree-sitter.
> > js2-mode is not in Emacs, so I cannot control what it does.  Ideally, it
> > will need only minor adjustments (like making sure it doesn't turn on
> > tree-sitter if it doesn't want to) or none at all.
> 
> That was my question: how would those "minor adjustments" look if not 
> the way Yuan proposed things.

I don't know, sorry.  First, Yuan didn't yet finish adjusting the code to
what we have said here today.  And on top of that, I'm not familiar with
js2-mode, so I'd be grateful if someone else could tell what would be needed
there (when that is clear).



reply via email to

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