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#71209: [PATCH] Add font-locking for variables in go-ts-mode range clauses Date: Sat, 06 Jul 2024 10:46:44 +0300 Message-ID: <86a5iv55ej.fsf@gnu.org> References: <6769ff22-14d3-4c6a-b0a2-dd53ec717f15@gutov.dev> <8634pewsej.fsf@gnu.org> <8634oy7s3s.fsf@gnu.org> 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="13686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71209@debbugs.gnu.org, dmitry@gutov.dev, dev@rjt.dev To: Noah Peart Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 06 09:47:12 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 1sQ08W-0003Ln-9l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jul 2024 09:47:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ08L-0000SW-SS; Sat, 06 Jul 2024 03:47:01 -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 1sQ08J-0000SF-V8 for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:47:00 -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 1sQ08I-0005iE-Mq for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:46:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQ08M-0005ZJ-5M for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2024 07:47: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.172025201821393 (code B ref 71209); Sat, 06 Jul 2024 07:47:02 +0000 Original-Received: (at 71209) by debbugs.gnu.org; 6 Jul 2024 07:46:58 +0000 Original-Received: from localhost ([127.0.0.1]:45514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ08H-0005Yz-IX for submit@debbugs.gnu.org; Sat, 06 Jul 2024 03:46:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQ08F-0005Ym-N2 for 71209@debbugs.gnu.org; Sat, 06 Jul 2024 03:46:56 -0400 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 1sQ086-0005gy-K1; Sat, 06 Jul 2024 03:46:46 -0400 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=tPC4y8jJ5IxSAwN10gGlmS85B3F8BnFvzlTDX6ZAhdE=; b=C2xBIIIVSC5qUJZYclcP He1yA6W8PQq04tTlEeveuZZOpMgh3Dlz/0s3bumnkQUrLVLb7P3igh4ctz/wkD98ny4fp+SAop/If XVgmfwgx7qsOcYYj/OKOE/DRyUF7HaNfG9ahlncC+0Hl+qlAnKw3HwnD3S6RBENJy0ilNkyzKD+Mk CrNK2MuAjDuh6QDd5CZlUCqLrUb25CHBnHoJvn9K1faoa4lasLM6EdJtODGv4fy1YiHTh8JWuPAii E/DR9Se/dZaeX5fYXXzUO6+uJrjZlLLHJ/Fz1gGbOUzEv+I+Xs/LUYF20pobpoum6iKe6Ahe9bXIm aBYkEx2hhUocHg==; In-Reply-To: (message from Noah Peart on Thu, 27 Jun 2024 05:29:21 -0400) 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:288469 Archived-At: Ping! Any progress with this? > From: Noah Peart > Date: Thu, 27 Jun 2024 05:29:21 -0400 > Cc: dmitry@gutov.dev, 71209@debbugs.gnu.org, dev@rjt.dev > > Ah yes, sorry to be slow, I can submit a patch for those settings. I'll take a look today! > > On Thu, Jun 27, 2024 at 3:38 AM Eli Zaretskii wrote: > > Ping! Ping! Noah, are you still interested in working on this? > > > Cc: 71209@debbugs.gnu.org, dev@rjt.dev > > Date: Sat, 15 Jun 2024 10:56:36 +0300 > > From: Eli Zaretskii > > > > Ping! Noah, would you please answer Dmitry? > > > > > Cc: 71209@debbugs.gnu.org > > > Date: Sat, 1 Jun 2024 17:13:57 +0300 > > > From: Dmitry Gutov > > > > > > 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? > > > > > > > > > > > > > > > > > > > >