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: c-ts-mode Date: Thu, 07 Sep 2023 12:37:07 +0300 Message-ID: <83jzt2z5mk.fsf@gnu.org> References: <5F73CB5D-DB00-439F-AD7C-7E209EC83A35@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, spacibba@aol.com, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 07 11:37:59 2023 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 1qeBSY-00018a-Fc for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Sep 2023 11:37:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeBRx-0004bB-TF; Thu, 07 Sep 2023 05:37:21 -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 1qeBRv-0004ao-9v for emacs-devel@gnu.org; Thu, 07 Sep 2023 05:37:19 -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 1qeBRu-0007HP-Vy; Thu, 07 Sep 2023 05:37:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=NvbVkjSrTEyDIJAZNvg7pz0rocddw3rjZnI/6u1Ea8Y=; b=SzaHN7ZCYo5lhuHOP1Wy Z3c9G80ixYhEc/wBxwVFp0QgsaFxb0Cj6GJx3x9ofuliYqtkaZUEI6u8fNFBYJmRW8Ep5PxJwC3Yf zp+CcFFl3XtgqT58BDnaT/DmNPaBzK5IaV0uyfFKsHeHrRbM9CnlwJaqcfkmTBhbpaDFCFY/WbUES fcHysVck9IKi5bWZ2N5DR9vGqBI7bUo3sPuMFYP5YvME25mQ8aW2q7t5MlCN6hocF4UjGzVrk2PgP spm8Ck26/DujzKyRBh9725yE1jkU3D6saizAFu92dEpLcd59h9w4NRQmed4DXE3LVSPNbj6XRuZ5f WJCXfQg9QHVm3A==; In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Thu, 7 Sep 2023 10:25:28 +0100) 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:310254 Archived-At: > From: João Távora > Date: Thu, 7 Sep 2023 10:25:28 +0100 > Cc: Ergus , emacs-devel > > On Fri, Sep 1, 2023, 05:15 Yuan Fu wrote: > > C-ts-mode could definitely be improved in terms of customization, and any feature in general. > Any help is welcome! > > How difficult would it be, in your opinion, to have c-ts-mode or c++-ts-mode import cc-mode styles as > treesitter rules? I'd be interested in that feature even if the importation is not 100% accurate. Some of the styles are already supported. The rest should also be possible (at least most of them), but someone will have to write the code. It is not a simple matter of "importing", since CC Mode implements these features based on infrastructure that either doesn't exist or makes no sense in treesit-supported modes.