From 48a62c55465f22d8b647f3627dcb1d827130e05e Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sat, 14 Jan 2023 22:39:08 +0100 Subject: [PATCH] Add constructor_declaration as java-ts-mode defun * lisp/progmodes/java-ts-mode.el (java-ts-mode): Extend treesit-defun-type-regexp. --- lisp/progmodes/java-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index 03342ab52bb..d29fcd80861 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -311,7 +311,8 @@ Return nil if there is no name or if NODE is not a defun node." "enum_declaration" "import_declaration" "package_declaration" - "module_declaration"))) + "module_declaration" + "constructor_declaration"))) (setq-local treesit-defun-name-function #'java-ts-mode--defun-name) ;; Font-lock. -- 2.39.5