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.bugs Subject: bug#61655: [Tree sitter] [Feature Request] font-lock function calls, definitions, separately Date: Thu, 23 Feb 2023 20:15:04 +0200 Message-ID: <83bklkp7tj.fsf@gnu.org> References: <8DA1B548-B8D2-4EC1-B9F8-F7654003AC89@gmail.com> <56C0998E-3053-49F3-BAE3-46D6432B16F5@gmail.com> <87abbcaf-e60b-f975-b589-5e61f2d7866e@yandex.ru> 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="11866"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 61655@debbugs.gnu.org, jacob.fai@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 23 19:16:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pVG8d-0002yC-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Feb 2023 19:16:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVG8U-0001ER-FW; Thu, 23 Feb 2023 13:16:06 -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 1pVG8Q-0001Bg-AA for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVG8Q-0008G0-17 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVG8P-0007EW-Rs for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 13:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61655 X-GNU-PR-Package: emacs Original-Received: via spool by 61655-submit@debbugs.gnu.org id=B61655.167717614027768 (code B ref 61655); Thu, 23 Feb 2023 18:16:01 +0000 Original-Received: (at 61655) by debbugs.gnu.org; 23 Feb 2023 18:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:35272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVG83-0007Do-OU for submit@debbugs.gnu.org; Thu, 23 Feb 2023 13:15:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVG81-0007DZ-U7 for 61655@debbugs.gnu.org; Thu, 23 Feb 2023 13:15:38 -0500 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 1pVG7w-0008C0-7K; Thu, 23 Feb 2023 13:15:32 -0500 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=I10dYyqnGmSiC+tqz/v3/v7Y7AV+NTpQyJQ5JhhLebY=; b=XrNiv2WngCLJgdDE4MUe oD9CiEABN8B9Ows6kiu/4QxxqRw21tg4UN6+YoWYzWmcMdgd0qQbKzXLCkAhWFasvdrCq79EJx4lh 4RZDMe59ttzCPdEMXv0RgWmQYiXHpl7qjDn6pLOYP/z7hGbSlpMyNhMzvtrKSzic42BMEoL1D5B1U 7ZwHWc1ZzvzQOrJGYnv56iDiKtE4Y+xqNdjjCAqMltj/w1DFbXUuTR4vw93/sItQgBbvuTrGMZzFc vV+trtpwI5X4lMYRDfVm3R8b2JVQTsxtOhhz230MTkbSqqudYf0CIMed2Rupenmrb0peyyaPLdaNZ 4EzV7WHgMnlArg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVG7W-0007MT-Oc; Thu, 23 Feb 2023 13:15:10 -0500 In-Reply-To: <87abbcaf-e60b-f975-b589-5e61f2d7866e@yandex.ru> (message from Dmitry Gutov on Wed, 22 Feb 2023 23:38:04 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256509 Archived-At: > Cc: 61655@debbugs.gnu.org > Date: Wed, 22 Feb 2023 23:38:04 +0200 > From: Dmitry Gutov > > On 22/02/2023 22:45, Yuan Fu wrote: > > Yeah that’s just an idea, and I don’t have problem adding faces. But we probably can’t keep adding more and more specific faces. At one point we’ll need to either add indirection, or ask users to just add their own fontification rules, if it is really specific. We’ll see. > > An indirection seems like a separate new feature. Might be useful for > some, but probably unnecessary for this discussion. > > > Function definition & call is totally reasonable. But adapting all the major modes to use them is might be too big a change for emacs-29. > > The change itself should be very straightforward. If we agree on the set > of faces (for variables and properties as well, right?), I don't mind > posting a patch for review. > > Whether it gets accepted or not. I'm okay with adding a few more faces to emacs-29, but please hurry, as we don't have too much time for more additions.