emacs-devel
[Top][All Lists]
Advanced

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

Re: A few questions about c++-ts-mode.


From: Eli Zaretskii
Subject: Re: A few questions about c++-ts-mode.
Date: Thu, 09 May 2024 10:03:57 +0300

> From: Filippo Argiolas <filippo.argiolas@gmail.com>
> Date: Thu, 9 May 2024 08:11:53 +0200
> Cc: spacibba@aol.com, emacs-devel@gnu.org, casouri@gmail.com
> 
> > Language injection AFAIU requires an additional grammar library, which
> > means someone must compile it, the end-user must ensure it's
> > installed, etc.  IOW, it makes the disadvantages of tree-sitter more
> > prominent, for the benefit of a very minor feature.  From where I
> > stand, that makes the balance tip in favor of the simpler solution,
> > which users could more easily activate and customize.
> 
> Thanks for the clarification!
> I thought there was some intrinsic limitation either in the injection
> feature or in emacs support for it.
> Agree that requiring an extra grammar just for highlighting a couple
> of @keywords would be too cumbersome.
> OTOH from what I can tell injections seem popular in the nvim world so
> that must not be that cumbersome for the users.

nvim also requires users to have the exact version of the grammar
libraries they pin to support, something that IMNSHO is harsh on
users, and therefore we don't do.

IOW, what nvim or other projects do is not necessarily what we should
do.  We need to make our own decisions.



reply via email to

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