Skip to content

Commit

Permalink
indent-new-comment-line: Inherit slashes from the previous line
Browse files Browse the repository at this point in the history
  • Loading branch information
taku0 committed Feb 5, 2017
1 parent 42669da commit a489024
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swift-mode-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,10 @@ See `indent-new-comment-line' for SOFT."
(insert-before-markers-and-inherit
(cond
(is-single-line-comment
"// ")
(save-excursion
(goto-char comment-beginning-position)
(looking-at "/+")
(concat (match-string-no-properties 0) space-after-asterisk)))

(comment-multi-line
(save-excursion
Expand Down

0 comments on commit a489024

Please sign in to comment.