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)
|
||||
(newline))
|
||||
((sp-point-in-comment)
|
||||
(if (eq major-mode 'js2-mode)
|
||||
(js2-line-break)
|
||||
(indent-new-comment-line)))
|
||||
(t
|
||||
(newline-and-indent)
|
||||
(ignore-errors (indent-sexp)))))
|
||||
(cond ((eq major-mode 'js2-mode)
|
||||
(js2-line-break))
|
||||
((-contains? '(c-mode c++-mode objc-mode java-mode) major-mode)
|
||||
(c-indent-new-comment-line))
|
||||
(t (indent-new-comment-line))))
|
||||
(t (newline-and-indent))))
|
||||
|
Reference in New Issue
Block a user