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
1 changed files with 3 additions and 1 deletions
|
@ -3946,7 +3946,9 @@ See `treesit-thing-settings' for more information.")
|
||||||
:embed 'jsdoc
|
:embed 'jsdoc
|
||||||
:host 'javascript
|
:host 'javascript
|
||||||
:local t
|
: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
|
;; Imenu
|
||||||
(setq-local treesit-simple-imenu-settings
|
(setq-local treesit-simple-imenu-settings
|
||||||
|
|
Loading…
Add table
Reference in a new issue