mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix comment continuation on return in C/C++/Java
This commit is contained in:
@ -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))))
|
||||||
|
Reference in New Issue
Block a user