summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-01-14 22:39:08 +0100
committerTheodor Thornhill <theo@thornhill.no>2023-01-14 23:07:43 +0100
commit48a62c55465f22d8b647f3627dcb1d827130e05e (patch)
treebb1f05fd3eb87b18497b074c7f7684abee991603
parent72c45fa9109a53cb55d13697d69e9a32a7e289b5 (diff)
downloademacs-48a62c55465f22d8b647f3627dcb1d827130e05e.tar.gz
emacs-48a62c55465f22d8b647f3627dcb1d827130e05e.tar.bz2
emacs-48a62c55465f22d8b647f3627dcb1d827130e05e.zip
Add constructor_declaration as java-ts-mode defun
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Extend treesit-defun-type-regexp.
-rw-r--r--lisp/progmodes/java-ts-mode.el3
1 files changed, 2 insertions, 1 deletions
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.