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: Sat, 25 Feb 2023 10:05:58 +0200 Message-ID: <83lekmkw49.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> <83bklkp7tj.fsf@gnu.org> <97710356-24c1-d79c-4796-3e51fd4809e3@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, jacob.fai@gmail.com, theo@thornhill.no, 61655@debbugs.gnu.org, dgutov@yandex.ru To: Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 25 09:07: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 1pVpaN-0009Ca-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Feb 2023 09:07:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVpaB-0007XQ-MZ; Sat, 25 Feb 2023 03:07:03 -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 1pVpaA-0007XB-Ld for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 03:07: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 1pVpaA-0000hq-Cz for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 03:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVpa9-00049T-TP for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 03:07: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: Sat, 25 Feb 2023 08:07: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.167731236815881 (code B ref 61655); Sat, 25 Feb 2023 08:07:01 +0000 Original-Received: (at 61655) by debbugs.gnu.org; 25 Feb 2023 08:06:08 +0000 Original-Received: from localhost ([127.0.0.1]:38919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVpZE-000480-L5 for submit@debbugs.gnu.org; Sat, 25 Feb 2023 03:06:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVpZD-00047W-1H for 61655@debbugs.gnu.org; Sat, 25 Feb 2023 03:06:03 -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 1pVpZ7-0000X2-3x; Sat, 25 Feb 2023 03:05:57 -0500 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=EvfEv2W8CNTJhTLsRrA9fxPEfmKwI3GFbsEa8vcMoVM=; b=PbYSqW8vocCm 3ZtA6nXMSgIuWPzOXqsPJUVEKFLchABHX8VzDooiwvrWHg4oo5F5CKWxJ63ELM5B+1f4RiWnUTVGd UncBff3gZiREt2bqkPMpT1DqmFmTmutuQ5H8zbwDQVz8VH+tEqxzxmWYm1d06qTCS1soADag8lxlc Lrm2qgDByrc2YvCoBzQsUzPgzH9XksFPJZzvYLviupzTSUzEaOzvh1C9t+nkDhu94NDEhWIhcAYfX DT0xvG90FqPHqkt21ywRLW1D9TQGuXBgjTxJim1j92lktSBX4KFFaT3lv3HvfL9QC/20e/rZWmWJw nBpu9u3YK6PPSqLRWgx3+g==; 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 1pVpZ5-0001gk-Te; Sat, 25 Feb 2023 03:05:56 -0500 In-Reply-To: (message from Randy Taylor on Sat, 25 Feb 2023 01:06:02 +0000) 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:256697 Archived-At: > Date: Sat, 25 Feb 2023 01:06:02 +0000 > From: Randy Taylor > Cc: Eli Zaretskii , casouri@gmail.com, 61655@debbugs.gnu.org, jacob.fai@gmail.com, Theodor Thornhill > > On Thursday, February 23rd, 2023 at 21:31, Dmitry Gutov wrote: > > I'm not sure about the naming of font-lock-variable-ref-face. It's confusing for languages that support actual references like C++ and Rust. That's a different kind of "reference". > Maybe the opposite direction is better: font-lock-variable-def-face (or something similar) for definitions (or whatnot), and font-lock-variable-name-face to refer to uses (same goes for property). No, that would rename a widely used face which we had for many years. > Or font-lock-variable-use-face. That could work, but then we'd need to change all the other "-ref-" faces to "-use-" as well. > Personally, I don't really see the value in differentiating these for variables. I can understand it a little more for properties. But I guess it doesn't hurt to add if folks want it. Right, it doesn't hurt.