From 23a14e7b9026a8572fe8ae8759232e08cd37910a Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Tue, 30 May 2023 15:29:38 +0200 Subject: [PATCH] Add compact_constructor_declaration font-locking to java-ts-mode * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): New pattern. --- lisp/progmodes/java-ts-mode.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index fca00cdce4f..44dfd74cafd 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -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) -- 2.39.2