From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71209: [PATCH] Add font-locking for variables in go-ts-mode range clauses Date: Sat, 1 Jun 2024 17:13:57 +0300 Message-ID: <6769ff22-14d3-4c6a-b0a2-dd53ec717f15@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18614"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71209@debbugs.gnu.org To: Noah Peart , Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 01 16:15:09 2024 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 1sDPVl-0004fU-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jun 2024 16:15:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDPVU-00040M-So; Sat, 01 Jun 2024 10:14:52 -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 1sDPVT-000401-1M for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 10:14:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDPVS-00023l-PR for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 10:14:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDPVe-00070O-ED for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jun 2024 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71209 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71209-submit@debbugs.gnu.org id=B71209.171725125926863 (code B ref 71209); Sat, 01 Jun 2024 14:15:02 +0000 Original-Received: (at 71209) by debbugs.gnu.org; 1 Jun 2024 14:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:56972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDPUx-0006zC-Hs for submit@debbugs.gnu.org; Sat, 01 Jun 2024 10:14:19 -0400 Original-Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]:54151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDPUw-0006z1-Jq for 71209@debbugs.gnu.org; Sat, 01 Jun 2024 10:14:19 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id 377551C00098; Sat, 1 Jun 2024 10:14:01 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 01 Jun 2024 10:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1717251240; x=1717337640; bh=gm9BMq3NYxWbRO0yRmvWaiJJk5g3cyabmui+Buq0hm0=; b= h4pvoninMm+dMDmckzoCI8WAplCpn75J8AYv6mc7mR2RnOV94OjmfiquEg6xLYgT FZSW87eDQOUzp3PChji3Jhj0zWA1PngCcT5k7YgT3upxepBhOdqlJJbHSZUFwQu2 WvBewIUSA9lPZrrZ86EWRy4KAzYD9mS7ArQ9nyZu5+dv+JuOPjt+UxnMXWDbnDWG HrRRsNaZ4YEPy1/BRgBHKJna0hm0FvXTv2j7UOj1R7mKuHnWilZdqTxjMC5ifxYW OuT6z8E6Igv6Z0M9ZE3A6WcEsHLMIcowiiFKOb1jnGnlCiRDWbyswTUgOCxIuOr/ VcFx1HJF16bSEzSV/oV+Mw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717251240; x= 1717337640; bh=gm9BMq3NYxWbRO0yRmvWaiJJk5g3cyabmui+Buq0hm0=; b=B nfH8MhVtbdrkN8aBZowHt015+nPxUMMlkgi/sWF8tDx6Rc83jfapXi4em2PekJ7o k4LR3hjFqaTDTpHIPhjZxgHl7M+kpEmX8n7rEsGKLU4jZQraQpwcN+NC77ecv4iU I7BxqxO816MOqjVycsEvKFfuUfyahoPWnGae+knmyVOswZHQlrQYRj9hiWjnkQ7L w5V+IVe00BMvLzi3V1PSfPqeeXwNw8waG+HIcdleAhQLZGG3lV0JIXP7znmUn3H7 UUHnhBXWD4sdDo/L8OsfLMgGkHYBj7Uh/IsCNCuHQO+cimg13A1fewWk0zZaN/ki p8CyZl158stxzSA1aHnzg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekkedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Jun 2024 10:13:59 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:286325 Archived-At: On 01/06/2024 04:42, Noah Peart wrote: > > I've been using these for c++, I think they are still missing > >     ;; for (auto x: ...) >     (for_range_loop >      declarator: (identifier) @font-lock-variable-name-face) >     ;; auto& x >     (reference_declarator >      (identifier) @font-lock-variable-name-face) >     ;; auto[&] [x, y] >     (structured_binding_declarator >      _ [(identifier)] @font-lock-variable-name-face) > > I suppose most people keep the default font-locking for variable-name > and variable-use, so these missing rules go unnoticed. Do you want to submit a full patch with these as well?