From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Tree sitter support for C-like languages Date: Wed, 16 Nov 2022 21:25:16 +0100 Message-ID: <87wn7umytv.fsf@thornhill.no> References: <87tu36em9t.fsf@thornhill.no> <33EE9B30-C6EC-48D1-BEAF-ABAA1350C870@gmail.com> <87tu2y4qhq.fsf@thornhill.no> <02C0B7A1-73B7-45FA-8EA9-FD389817099F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 16 21:26:39 2022 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 1ovOzW-0001Zc-Vl for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Nov 2022 21:26:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovOyU-0007fw-1n; Wed, 16 Nov 2022 15:25:34 -0500 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 1ovOyS-0007f4-RJ for emacs-devel@gnu.org; Wed, 16 Nov 2022 15:25:32 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovOyO-0000zr-Jj for emacs-devel@gnu.org; Wed, 16 Nov 2022 15:25:32 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1668630324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W549d+hgL4E/YlnpX30XelkG23UABJfONGQPwJr348s=; b=Ngs9kV/B/2A++kW6+qjlNGMbtmZKfqK1bdj6AD3b9Fxfzozak8FG8dcyxlwGQvrjhwKqmS mY9vYlArJcphbejZdTRdAKmV2NCFO85+ixlFz6eS5L4CIXJjQPVl9aDEruVW3K5m66tfYQ upB3dxR/gPenDwDUcBvte45wUOwXkzSUiMu5eepTAfTxD+EGBAQ0lNar5OltCThfoPNABC 0kl5aqj/wJOiFgn/0aCgoLyX2Z8klXHsp4/yHfrxr21e1iS6hwMzNQAgZfDwr6yGl9bC5G cabxKJwl3cSv3/tcR9bmyAoNSoucliDJI9xgv18xSNlM+/50iLbKsHrOnlLxDA== In-Reply-To: <02C0B7A1-73B7-45FA-8EA9-FD389817099F@gmail.com> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:299987 Archived-At: Yuan Fu writes: >> On Nov 16, 2022, at 12:02 PM, Theodor Thornhill wrot= e: >>=20 >> Yuan Fu writes: >>=20 >>> I noticed that the new fontification is much busier than cc-mode, so he= re=E2=80=99s some of my thoughts: >>>=20 >>=20 >> Yeah, I just made it very colorful mostly to prove the point that we >> have very granular control. I think Randys patch was very good, because >> imo _most_ of the noise is the bracket/pointer/operators etc. > > That seems to be a trend for tree-sitter fontification ;-) Neovim does si= milar things. > Hehe, yep! >>=20 >> Just hack away! > > Thanks! Will do. > If you find something you feel is a general, good baseline, just apply it to the other modes as well if your time permits :) Theo