From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.devel Subject: Re: Standardizing tree-sitter fontification features Date: Fri, 25 Nov 2022 19:14:59 +0000 Message-ID: References: <83o7svv4cy.fsf@gnu.org> 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="5708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 20:15:59 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 1oyeB4-0001GY-SI for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 20:15:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyeAO-0000w4-R8; Fri, 25 Nov 2022 14:15:16 -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 1oyeAN-0000tS-6O for emacs-devel@gnu.org; Fri, 25 Nov 2022 14:15:15 -0500 Original-Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyeAF-0001O8-Ld; Fri, 25 Nov 2022 14:15:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1669403703; x=1669662903; bh=vQxVg1r/jaYLq7yu4ducmlFRTaPTsvcQ8G3OPJRt5Ts=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=AkHlf78NVNVy52Uv6IR1HOYANFvSM6WE5vOOUTH5QsXeTNPYzO7Iq0hVnop3chdhB sQWj/SwVL/PIQh/614mc73WWAb4mBCFB/8/4aodPvIfdAloEEckWTJ2awjgOU7YbmD pUL+YZN3wjr/JTRi8S2yXVo6F/jnRMNDBAXGx3y6Hb3KoElVZuD7jbCU3hmPUZZxWJ 3UYibcZAaQLTJDUf0IQn11zPN+wWhaflyr4wUKTLTs+AVEQynLAMGFmDIdre/DmU68 s38lZdLGYvUtp9nMtogHefLiP4sgYZVwJQCS4Irk5i8asuz7XwRQxygmLvjruJ92kT 867RiHJrgZx2A== In-Reply-To: <83o7svv4cy.fsf@gnu.org> Feedback-ID: 44397038:user:proton Received-SPF: pass client-ip=185.70.43.17; envelope-from=dev@rjt.dev; helo=mail-4317.proton.ch 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, RCVD_IN_MSPIKE_H2=-0.001, 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:300510 Archived-At: On Friday, November 25th, 2022 at 03:13, Eli Zaretskii wrote= : >=20 > > Date: Fri, 25 Nov 2022 01:13:46 +0000 >=20 > > From: Randy Taylor dev@rjt.dev > > Cc: emacs-devel emacs-devel@gnu.org > >=20 > > On Thursday, November 24th, 2022 at 17:16, Yuan Fu casouri@gmail.com wr= ote: > >=20 > > I wonder if assignment and definition are really worth having (and woul= d prefer to do without them), since they should be covered by the variable,= function, type and property features. >=20 >=20 > AFAIU, this is about the difference between defining a function and calli= ng > it. The distinction could be useful, at least in some cases. We could mak= e > this off by default, of course, but I don't think we should ignore the > distinction. Yes, in my mind the variable, function, etc. features would cover everythin= g but it's clear people want more control over that aspect. We could give t= hem different faces, but that would require making more faces which probabl= y isn't desired. The only unfortunate thing, as I asked Yuan, is we may end= up with duplication (depending on how we do it). Assignment and declaratio= n will have a fair bit of overlap with the variable and function features.