]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve fontification in java-ts-mode (bug#60492)
authorTheodor Thornhill <theo@thornhill.no>
Mon, 2 Jan 2023 12:46:25 +0000 (13:46 +0100)
committerYuan Fu <casouri@gmail.com>
Mon, 2 Jan 2023 22:29:48 +0000 (14:29 -0800)
* 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

index 8d6b244c1359f2a57fb945534df372eba9366b33..96d8045bd6102b0e0bb4a356a2a153c62d07b42f 100644 (file)
      (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