lang/web: fix fill-prefix on continued comments

Before:

  /*
   * pretend this is a line longer than 80 characters
   */

  Call fill-paragraph:

  /*
   * pretend this is a line longer
     than 80 characters
   */

After

  /*
   * pretend this is a line longer than 80 characters
   */

  Call fill-paragraph:

  /*
   * pretend this is a line longer
   * than 80 characters
   */
This commit is contained in:
Henrik Lissner 2020-11-09 15:41:46 -05:00
parent 5c06edd90a
commit 5ccbc468ad
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -24,7 +24,9 @@ If set to `nil', disable all the above behaviors.")
;; Correctly continue /* and // comments on newline-and-indent
comment-line-break-function #'+css/comment-indent-new-line
;; Fix `fill-paragraph' not conjoining line comments in CSS modes correctly.
adaptive-fill-function #'+css-adaptive-fill-fn)
adaptive-fill-function #'+css-adaptive-fill-fn
;; Fix filled lines not being auto-prefixed with a * when needed.
adaptive-fill-first-line-regexp "\\'[ \t]*\\(?:\\* *\\)?\\'")
(after! (:any css-mode sass-mode)
(set-docsets! '(css-mode scss-mode sass-mode)