hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
361 stars 68 forks source link

Multi-line comment indentation and asterisk-insertion on mid-line return #41

Closed evnm closed 11 years ago

evnm commented 11 years ago

When multi-line comment asterisk-insertion is enabled, if you hit "return" when the cursor is mid-line within a multi-line comment, the asterisk is inserted at the end of the line:

/**
 * This is a[]comment.
 */

RETURN

/**
 * This is a
 comment.*
 */

This patch fixes this behavior, inserting the asterisk after line-leading whitespace instead of at line's end. It does so while maintaining the behavior of scala-indent:add-space-for-scaladoc-asterisk.

hvesalai commented 11 years ago

This is good. Would you like to squash all of them into one commit, or shall I do it when I merge?

evnm commented 11 years ago

Go ahead, if you prefer.

On Dec 8, 2012, at 1:24 AM, Heikki Vesalainen notifications@github.com wrote:

This is good. Would you like to squash all of them into one commit, or shall I do it when I merge?

— Reply to this email directly or view it on GitHub.