From: Theodor Thornhill Date: Sat, 14 Jan 2023 21:39:08 +0000 (+0100) Subject: Add constructor_declaration as java-ts-mode defun X-Git-Tag: emacs-29.0.90~726 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48a62c55465f22d8b647f3627dcb1d827130e05e;p=emacs.git Add constructor_declaration as java-ts-mode defun * lisp/progmodes/java-ts-mode.el (java-ts-mode): Extend treesit-defun-type-regexp. --- 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.