Fix comment continuation on return in C/C++/Java
This commit is contained in:
parent
d0cc583e19
commit
36da5e44ad
1 changed files with 6 additions and 6 deletions
|
@ -115,9 +115,9 @@ spaces on either side of the point if so. Resorts to
|
||||||
((sp-point-in-string)
|
((sp-point-in-string)
|
||||||
(newline))
|
(newline))
|
||||||
((sp-point-in-comment)
|
((sp-point-in-comment)
|
||||||
(if (eq major-mode 'js2-mode)
|
(cond ((eq major-mode 'js2-mode)
|
||||||
(js2-line-break)
|
(js2-line-break))
|
||||||
(indent-new-comment-line)))
|
((-contains? '(c-mode c++-mode objc-mode java-mode) major-mode)
|
||||||
(t
|
(c-indent-new-comment-line))
|
||||||
(newline-and-indent)
|
(t (indent-new-comment-line))))
|
||||||
(ignore-errors (indent-sexp)))))
|
(t (newline-and-indent))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue