From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Noah Peart Newsgroups: gmane.emacs.bugs Subject: bug#70361: [PATCH] Add font-locking for operators in go-ts-mode. Date: Sat, 13 Apr 2024 00:27:26 -0700 Message-ID: References: <86r0f9ranr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009edd470615f5526e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70361@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 13 09:28: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 1rvXo3-0004Nl-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Apr 2024 09:28:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvXnm-0008NA-Iu; Sat, 13 Apr 2024 03:27:54 -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 1rvXnk-0008Mo-Kk for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 03:27:52 -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 1rvXnk-0000OH-BB for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 03:27:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvXnu-0002C2-JK for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2024 03:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noah Peart Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Apr 2024 07:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70361 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70361-submit@debbugs.gnu.org id=B70361.17129932798398 (code B ref 70361); Sat, 13 Apr 2024 07:28:02 +0000 Original-Received: (at 70361) by debbugs.gnu.org; 13 Apr 2024 07:27:59 +0000 Original-Received: from localhost ([127.0.0.1]:59969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvXnp-0002Ay-7k for submit@debbugs.gnu.org; Sat, 13 Apr 2024 03:27:58 -0400 Original-Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]:47158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvXnl-00029a-Q5 for 70361@debbugs.gnu.org; Sat, 13 Apr 2024 03:27:55 -0400 Original-Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-22f32226947so959408fac.2 for <70361@debbugs.gnu.org>; Sat, 13 Apr 2024 00:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712993258; x=1713598058; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yc8N19Esjv2DIT9rKBv5xYuG5rbN26BjBW/F0JFei/o=; b=NZQWAUbEHdZgE14Hlb3pC+QlFzc7XNnTDHJEt9YTVTGoSAeXttAUPfKpgbQf18cyEg 4KwixPWzdVH/wgiGuNTpcK/WaRAeufSKIKdVs+2kcv8xvLzGTfDj3SuMm1GGUVoH+wc2 g3AUz66qk/6fu8ssXr664pFDh6S8SOy5flE7UDZwPvMGSsWQianW7T2aX9rPUevTS/En Qhfpu3NHNH5uvSL2bh5lzeFUxhm0S9CPD0KLaXWWxi4BudM34Ss/690CRzIyDcsi2OFT i+uNqNRINFvNmq2AoJEG5FhxgjWZjMAIuSqr2wwJ0h+mRbRbF0Vwjrvb5Q/ypdMybYRk Wcfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712993258; x=1713598058; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yc8N19Esjv2DIT9rKBv5xYuG5rbN26BjBW/F0JFei/o=; b=fXwytvSR93gUiK4gQb6L3Ppp4ecZ/60/jUNeSYVnjWB9JooxzpOGJ6ylI3KzC8Q1QH hD9BxFTcOcmSpajqGvJZIG0o6EIc6XGR6CyUFHnLL+BBi4eGK2kTswWz0feE2xxFbNdG hxd2ENvPsOcLPVmcNiEywIaAIqThQlwc4gOWTbujdg+1e+TSsoCIjN4EHBol6pKWdfvw KUGhKUrame4h4nEaO3ZvC6g/tnkCHGnsxRGvJUzphdo0MnuarFqZQ3+zOT0huTED7tdU CtVrKEcwDsf/G7kRTwZZ1vBTdvl4c+bxtPIqITjSxQn/CGv2CHhI6aqHrJRwuWDxZ+K5 CyDA== X-Gm-Message-State: AOJu0YzYg+7bC+vzuk8bJgc5Jf+1FCiyLzOa0WoPX0DMTDTrOtQBa+P5 VEqECevZiu/FQM1j286AiXAl8AjeyUGQ+pm6oEm+a4MM89SRCvsdUsMHs6Lwsu+CLzAjE/uDgBB ZWl2hLDrSh1YWK08gjO1pEHHn3Ks= X-Google-Smtp-Source: AGHT+IGQ+iyBGQvEbUlAO5fgDhCqZoMvQ7BzKS1N8rbatWE1TlACf+UDhOYAksB8/i3KKmMS+Sq7zY1UovoJ99iZdWs= X-Received: by 2002:a05:6870:e09:b0:22e:d13b:c13d with SMTP id mp9-20020a0568700e0900b0022ed13bc13dmr5512501oab.18.1712993257575; Sat, 13 Apr 2024 00:27:37 -0700 (PDT) In-Reply-To: <86r0f9ranr.fsf@gnu.org> 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:283170 Archived-At: --0000000000009edd470615f5526e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > The operators will be fontified only if treesit-font-lock-level is 4, right? Yea, operator is at level 4 - I didn't change the treesit-font-lock-feature-list. On Sat, Apr 13, 2024 at 12:20=E2=80=AFAM Eli Zaretskii wrote= : > > From: Noah Peart > > Date: Fri, 12 Apr 2024 22:23:05 -0700 > > > > Adds font-locking for Go operators in `go-ts-mode'. The operator featur= e > > is already added to `treesit-font-lock-feature-list' in `go-ts-mode` - > this > > just adds the missing rule to `go-ts-mode--font-lock-settings'. > > Thanks. > > The operators will be fontified only if treesit-font-lock-level is 4, > right? That's the level at which we decided to fontify operators. > --0000000000009edd470615f5526e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> The operators will be fontified only if treesit-font-= lock-level is 4,
right?

Yea, operator is at level 4 -= I didn't change the treesit-font-lock-feature-list.



On Sat, Apr 13, 2024 at 12:20=E2=80=AFAM Eli Zaretskii <= ;eliz@gnu.org> wrote:
> From: Noah Peart <noah.v.peart@gmail.= com>
> Date: Fri, 12 Apr 2024 22:23:05 -0700
>
> Adds font-locking for Go operators in `go-ts-mode'. The operator f= eature
> is already added to `treesit-font-lock-feature-list' in `go-ts-mod= e` - this
> just adds the missing rule to `go-ts-mode--font-lock-settings'.
Thanks.

The operators will be fontified only if treesit-font-lock-level is 4,
right?=C2=A0 That's the level at which we decided to fontify operators.=
--0000000000009edd470615f5526e--