From 8b57f12ab798fd231bf05fd800ccf5e6c544e560 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 18 Jul 2015 04:01:01 +0300 Subject: [PATCH] Consider a jsdoc tag to be a beginning of a paragraph as well * lisp/progmodes/js.el (js-mode): Change c-paragraph-start to consider a jsdoc tag to be a beginning of a paragraph as well. --- lisp/progmodes/js.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index f06c5c75b1a..c49f25b4b2d 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -3528,7 +3528,7 @@ If one hasn't been set, or if it's stale, prompt for a new one." ;; for filling, pretend we're cc-mode (setq c-comment-prefix-regexp "//+\\|\\**" - c-paragraph-start "$" + c-paragraph-start "\\(@[[:alpha:]]+\\>\\|$\\)" c-paragraph-separate "$" c-block-comment-prefix "* " c-line-comment-starter "//" -- 2.39.5