From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A few questions about c++-ts-mode. Date: Thu, 09 May 2024 10:03:57 +0300 Message-ID: <86a5kz8o0y.fsf@gnu.org> References: <865xvoa0jr.fsf@gnu.org> <86jzk38tm7.fsf@gnu.org> <86cypv8rb6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org, casouri@gmail.com To: Filippo Argiolas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 09 09:05:14 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s4xq5-0006fK-PT for ged-emacs-devel@m.gmane-mx.org; Thu, 09 May 2024 09:05:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4xpA-0000BQ-JX; Thu, 09 May 2024 03:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4xow-0000Ag-1y for emacs-devel@gnu.org; Thu, 09 May 2024 03:04:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4xov-0008SO-Fv; Thu, 09 May 2024 03:04:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Aylq65mDDsDEntt9+nRdXzjOS8RUxf54566251E5+Bc=; b=BGgUE+x00Tmi u6qct85xdQ9Xe5le5jbZsQ53/EjXakMp8Vz9T9WuuwciVyYhPCQlroDlO6McepwjbiwGvFnVFGw5Y 3xG9zU+Fu0HL1l+zwcNXkl++EgJyU7DxXmH9Y1dBnWPUuAmUe2VIn9bsum9ac6IPt538a0SfnX0yA Mz2TCYWY1K6A8UHEYvGUMR0EpG3rtWoawVV3A1A8dGaWpd2QCAj1G+vDR9lI2b/2Nl/DgwMC6alkQ LID/PM7Kgn461sw3w955ibP1giGbZI/u192i7ZrXuVIyw5Ui4o/S7TjRWhXO7/mVcOqLrlE5uXuKG w8g3E1cbVPVNxdkM1IY/nQ==; In-Reply-To: (message from Filippo Argiolas on Thu, 9 May 2024 08:11:53 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319047 Archived-At: > From: Filippo Argiolas > 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.