]> git.eshelyaron.com Git - emacs.git/commitdiff
Add compact_constructor_declaration font-locking to java-ts-mode
authorTheodor Thornhill <theo@thornhill.no>
Tue, 30 May 2023 13:29:38 +0000 (15:29 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Tue, 30 May 2023 13:29:38 +0000 (15:29 +0200)
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
New pattern.

lisp/progmodes/java-ts-mode.el

index fca00cdce4fb0f661a5779896d7d98906a0fa681..44dfd74cafd1218673694ce4a0a0af5eee186b70 100644 (file)
@@ -226,6 +226,9 @@ the available version of Tree-sitter for java."
      (constructor_declaration
       name: (identifier) @font-lock-type-face)
 
+     (compact_constructor_declaration
+      name: (identifier) @font-lock-type-face)
+
      (field_access
       object: (identifier) @font-lock-type-face)