summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-01-02 13:46:25 +0100
committerYuan Fu <casouri@gmail.com>2023-01-02 14:29:48 -0800
commit1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b (patch)
tree8884446e6d146ac9bd93aad09958e291c6c0c6b8
parentdfdf9c21cbe7896d03da011773e636fc287d97db (diff)
downloademacs-1a9a1fdebf648cc1f614089f385d2a9c6cbabc5b.tar.gz
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 @@
(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