aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodor Thornhill2023-01-02 13:46:25 +0100
committerYuan Fu2023-01-02 14:29:48 -0800
commit1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b (patch)
tree8884446e6d146ac9bd93aad09958e291c6c0c6b8
parentdfdf9c21cbe7896d03da011773e636fc287d97db (diff)
downloademacs-1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b.tar.gz
emacs-1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b.zip
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.
-rw-r--r--lisp/progmodes/java-ts-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index 8d6b244c135..96d8045bd61 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -240,7 +240,9 @@
240 (method_invocation 240 (method_invocation
241 name: (identifier) @font-lock-function-name-face) 241 name: (identifier) @font-lock-function-name-face)
242 242
243 (argument_list (identifier) @font-lock-variable-name-face)) 243 (argument_list (identifier) @font-lock-variable-name-face)
244
245 (expression_statement (identifier) @font-lock-variable-name-face))
244 246
245 :language 'java 247 :language 'java
246 :feature 'bracket 248 :feature 'bracket