emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 1a9a1fdebf 5/5: Improve fontification in java-ts-mode (bug#6049


From: Yuan Fu
Subject: emacs-29 1a9a1fdebf 5/5: Improve fontification in java-ts-mode (bug#60492)
Date: Mon, 2 Jan 2023 17:33:13 -0500 (EST)

branch: emacs-29
commit 1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Yuan Fu <casouri@gmail.com>

    Improve fontification in java-ts-mode (bug#60492)
    
    * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
    Add expression_statement with only identifier support.
---
 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 8d6b244c13..96d8045bd6 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -240,7 +240,9 @@
      (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]