[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 3f6e7e1da68: js-ts-mode: Make jsdoc's "description" block a com
From: |
Yuan Fu |
Subject: |
emacs-30 3f6e7e1da68: js-ts-mode: Make jsdoc's "description" block a comment (bug#72461) |
Date: |
Sun, 4 Aug 2024 23:19:00 -0400 (EDT) |
branch: emacs-30
commit 3f6e7e1da682b708ece0ac79b9c6b8acb357d729
Author: Damien Cassou <damien@cassou.me>
Commit: Yuan Fu <casouri@gmail.com>
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'.
---
lisp/progmodes/js.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index f8140c14a49..75c8111035c 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 3f6e7e1da68: js-ts-mode: Make jsdoc's "description" block a comment (bug#72461),
Yuan Fu <=