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 08:53:01 +0300

> From: Filippo Argiolas <filippo.argiolas@gmail.com>
> Date: Thu, 9 May 2024 07:34:58 +0200
> Cc: Ergus <spacibba@aol.com>, emacs-devel@gnu.org, casouri@gmail.com
> 
> > If the only solution is language injection, then doing that our usual
> > way (with regexps etc.) is easier and more flexible.  I thought I saw
> > some commits in the C++ grammar that actually support that in the
> > grammar itself.  If there is such support, we should use it, IMO.
> >
> 
> Sorry to intrude, may I ask what's the problem with language
> injection? it seems the perfect use case for this.

I didn't say there was a problem, I said that doing it with regexp
etc. would be easier and more flexible.

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.



reply via email to

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