]> git.eshelyaron.com Git - emacs.git/commitdiff
Add constructor_declaration as java-ts-mode defun
authorTheodor Thornhill <theo@thornhill.no>
Sat, 14 Jan 2023 21:39:08 +0000 (22:39 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Sat, 14 Jan 2023 22:07:43 +0000 (23:07 +0100)
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Extend
treesit-defun-type-regexp.

lisp/progmodes/java-ts-mode.el

index 03342ab52bb40e3513a26963d15b61ac25772f38..d29fcd808612755fde6481e78ee1c1f31b469590 100644 (file)
@@ -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.