From: Damien Cassou Date: Sun, 21 Jul 2024 19:32:34 +0000 (+0200) Subject: js-ts-mode: Make jsdoc's "description" block a comment (bug#72461) X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~591 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3f6e7e1da682b708ece0ac79b9c6b8acb357d729;p=emacs.git 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'. --- 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