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