[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 48a62c5546: Add constructor_declaration as java-ts-mode defun
From: |
Theodor Thornhill |
Subject: |
emacs-29 48a62c5546: Add constructor_declaration as java-ts-mode defun |
Date: |
Sat, 14 Jan 2023 17:08:43 -0500 (EST) |
branch: emacs-29
commit 48a62c55465f22d8b647f3627dcb1d827130e05e
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
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 03342ab52b..d29fcd8086 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 48a62c5546: Add constructor_declaration as java-ts-mode defun,
Theodor Thornhill <=