From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60086: 30.0.50; [PATCH]: Add this keyword to java-ts-mode Date: Thu, 15 Dec 2022 11:50:30 +0100 Message-ID: <87sfhhvt3d.fsf@thornhill.no> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20709"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com To: 60086@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 11:51:24 2022 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 1p5lpj-00059j-S4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 11:51:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5lpQ-0000eL-7q; Thu, 15 Dec 2022 05:51:04 -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 1p5lpO-0000dV-Ek for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:51: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 1p5lpO-00068E-5M for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5lpN-0001i1-RD; Thu, 15 Dec 2022 05:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: casouri@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 10:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60086 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: casouri@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.16711014416548 (code B ref -1); Thu, 15 Dec 2022 10:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 10:50:41 +0000 Original-Received: from localhost ([127.0.0.1]:42788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5lp2-0001hY-Qt for submit@debbugs.gnu.org; Thu, 15 Dec 2022 05:50:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5loz-0001hO-5F for submit@debbugs.gnu.org; Thu, 15 Dec 2022 05:50:39 -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 1p5loy-0000WD-Vz for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:50:37 -0500 Original-Received: from out-142.mta0.migadu.com ([91.218.175.142]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5low-0005zi-5f for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 05:50:36 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1671101431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=9eHIum+gUaqEdlr1zHEZI3M0dMl/gj0GlLZBdqtcKD0=; b=CzYr7pLJUIPQPHhCTSx7nIx5yKG/rgiS3AA3geM2CqYuQtzB0J5PQ4VSx4eoTspKg3ILbf hmuWp7ROtkd/QU4tghC72+2oP02x0GQmTSAO9duqmb+/GN8dObPyhgyFZXGxnRITeKCYbe 0bhGR/w7dnImp068uOlLkCXtKZU9cI27MO2UAS2XUJVRHtplK7olDpo+yQ1QV5WUPVNAfx y9o4vYq/tJk4CxCbHSELObmZVkXAsNoUNfiD5cLSBzzeauHZimu+JCH5aV3chCoXuZfN2c suF07Ij8qMZoKco411BVICiz3LdibnOYexDClmM5KS2bRzuEGShC+SFyvr8uzQ== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.142; envelope-from=theo@thornhill.no; helo=out-142.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:251066 Archived-At: --=-=-= Content-Type: text/plain Hi Yuan, Will you install this? Thanks, Theo --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-this-keyword-to-java-ts-mode.patch >From 7eabfe6a71802ae971378fd3f54f822276460b23 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Thu, 15 Dec 2022 11:48:32 +0100 Subject: [PATCH] Add this keyword to java-ts-mode * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): Add the node to the keyword feature. --- lisp/progmodes/java-ts-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index ac591a0859..559a4efef2 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -144,9 +144,10 @@ java-ts-mode--font-lock-settings :language 'java :override t :feature 'keyword - `([,@java-ts-mode--keywords] @font-lock-keyword-face - (labeled_statement - (identifier) @font-lock-keyword-face)) + `([,@java-ts-mode--keywords + (this)] @font-lock-keyword-face + (labeled_statement + (identifier) @font-lock-keyword-face)) :language 'java :override t :feature 'operator -- 2.34.1 --=-=-=--