A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01342.html below:

Re: Tree-sitter and major mode inheritance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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).



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4