projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c45fa
)
Add constructor_declaration as java-ts-mode defun
author
Theodor Thornhill
<theo@thornhill.no>
Sat, 14 Jan 2023 21:39:08 +0000
(22:39 +0100)
committer
Theodor 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/java-ts-mode.el
b/lisp/progmodes/java-ts-mode.el
index 03342ab52bb40e3513a26963d15b61ac25772f38..d29fcd808612755fde6481e78ee1c1f31b469590 100644
(file)
--- 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.