From: Dmitry Gutov Date: Sat, 18 Jul 2015 01:01:01 +0000 (+0300) Subject: Consider a jsdoc tag to be a beginning of a paragraph as well X-Git-Tag: emacs-25.0.90~1475 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b57f12ab798fd231bf05fd800ccf5e6c544e560;p=emacs.git 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. --- 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 "//"