Subject: bug#60492: closed (Re: bug#60492: 30.0.50; [PATCH]: Add expression_statement with only identifier)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 02 Jan 2023 22:31:02 +0000

Your bug report

#60492: 30.0.50; [PATCH]: Add expression_statement with only identifier

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60492: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60492
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#60492: 30.0.50; [PATCH]: Add expression_statement with only identifier
From: Yuan Fu <[email-masked]>
To: Theodor Thornhill <[email-masked]>
Cc: [email-masked]
Date: Mon, 2 Jan 2023 14:30:38 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Theodor Thornhill <[email-masked]> writes:

> Hi Yuan,
> Can you apply this?
> Theo

Applied, thanks!

Yuan

Subject: 30.0.50; [PATCH]: Add expression_statement with only identifier
From: Theodor Thornhill <[email-masked]>
To: [email-masked]
Date: Mon, 02 Jan 2023 13:50:35 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Yuan,

Can you apply this?

Theo

>From a46a6863c3c3691d5d139432ff016c3c1f565fa9 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <[email-masked]>
Date: Mon, 2 Jan 2023 13:46:25 +0100
Subject: [PATCH] Add expression_statement with only identifier support

* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
New query.
---
 lisp/progmodes/java-ts-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index 2d3ffccb3d0..87a4e2b90f8 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -240,7 +240,9 @@ java-ts-mode--font-lock-settings
      (method_invocation
       name: (identifier) @font-lock-function-name-face)
 
-     (argument_list (identifier) @font-lock-variable-name-face))
+     (argument_list (identifier) @font-lock-variable-name-face)
+
+     (expression_statement (identifier) @font-lock-variable-name-face))
 
    :language 'java
    :feature 'bracket
-- 
2.34.1