mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Add constructor_declaration as java-ts-mode defun
* lisp/progmodes/java-ts-mode.el (java-ts-mode): Extend treesit-defun-type-regexp.
This commit is contained in:
parent
72c45fa910
commit
48a62c5546
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user