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.bugs Subject: bug#71209: [PATCH] Add font-locking for variables in go-ts-mode range clauses Date: Tue, 28 May 2024 02:46:00 +0000 Message-ID: References: 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="32187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71209@debbugs.gnu.org To: Noah Peart Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 28 04:47:58 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 1sBmsO-0007zz-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 May 2024 04:47:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBmrX-0003jv-6b; Mon, 27 May 2024 22:46:55 -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 1sBmrV-0003VU-A9 for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 22:46:53 -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 1sBmrU-0004FL-T1 for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 22:46:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBmrd-00045S-LP for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 22:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2024 02:47:01 +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.171686438715669 (code B ref 71209); Tue, 28 May 2024 02:47:01 +0000 Original-Received: (at 71209) by debbugs.gnu.org; 28 May 2024 02:46:27 +0000 Original-Received: from localhost ([127.0.0.1]:45516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBmr4-00044f-LI for submit@debbugs.gnu.org; Mon, 27 May 2024 22:46:26 -0400 Original-Received: from mail-4022.proton.ch ([185.70.40.22]:52925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBmr1-00044N-2R for 71209@debbugs.gnu.org; Mon, 27 May 2024 22:46:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1716864363; x=1717123563; bh=N1QGXRemRF2J5rKXqYeR0b80xI35O5zRAjuq8kN51AQ=; 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=OXjsbNw1ZEfV5ZUXJfHCiL4h5OBakfAU6iv/ST/lojDhLNcIxCYuvE1dGYH7xe6Ia TZQCUkWc9astfywG8EWAlFJzh4/4RIrJk/3KRpvMhvwIj+3b/a4ZvsM0tCvzRlBZi0 QjfkuK0WNC0F94HilIAG0SXJXp8S0N9Zu2Jp6cbGFds3NpZ5z81mygvg9FZO5RGXOf YAifBytv2oN1GIzxT3cR9NeuuzjpxllnaJ1y9X5Up4KlSjfhphktvT+mv/Ii7G8p2l DZlQFMvEaWa0ORL32fMvF0yzsLkENdDF/GK4xw4ONurXVkKsa9OXi//1clf1B5pYfB gUymRhlpGn9tA== In-Reply-To: Feedback-ID: 44397038:user:proton X-Pm-Message-ID: d5cea780f4fcbdb4435617335e287ecfdd06ca95 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:286075 Archived-At: On Sunday, May 26th, 2024 at 08:41, Noah Peart wro= te: > Tags: patch >=20 > Adds font-locking rule in go-ts-mode to give variables in range clauses > font-lock-variable-name-face (in feature 'definition). >=20 > For example, the following font-locking is added: >=20 > for idx, val :=3D range arr {} > // ^ font-lock-variable-name-face > // ^ font-lock-variable-name-face >=20 > The patch also adds a test case. >=20 >=20 > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.33, cairo version 1.16.0) of 2024-05-21 built on noah-X580VD > Repository revision: 63d914e377f7cc37056de2503bfbeea831875037 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.1210100= 4 > System Description: Ubuntu 22.04.4 LTS >=20 > Configured using: > 'configure --prefix=3D/usr/local --with-modules --with-tree-sitter > --with-threads --with-x-toolkit=3Dgtk3 --with-xwidgets --with-gnutls > --with-json --with-mailutils --with-jpeg --with-png --with-rsvg > --with-tiff --with-xml2 --with-xpm --with-imagemagick CC=3Dgcc-12 > CXX=3Dgcc-12' Thanks, but it seems we already highlight this when at treesit-font-lock-le= vel 4?