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:
parent
1c7e00f4f6
commit
3f6e7e1da6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user