1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

js-ts-mode: Make jsdoc's "description" block a comment (bug#72461)

* lisp/progmodes/js.el (js-ts-mode): Add "description" to
`c-ts-common--comment-regexp'.
This commit is contained in:
Damien Cassou 2024-07-21 21:32:34 +02:00 committed by Yuan Fu
parent 1c7e00f4f6
commit 3f6e7e1da6
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -3946,7 +3946,9 @@ See `treesit-thing-settings' for more information.")
:embed 'jsdoc
:host 'javascript
:local t
`(((comment) @capture (:match ,js--treesit-jsdoc-beginning-regexp @capture))))))
`(((comment) @capture (:match ,js--treesit-jsdoc-beginning-regexp @capture)))))
(setq c-ts-common--comment-regexp (rx (or "comment" "line_comment" "block_comment" "description"))))
;; Imenu
(setq-local treesit-simple-imenu-settings