vim-scala icon indicating copy to clipboard operation
vim-scala copied to clipboard

Indentation after commented lines

Open Dinduks opened this issue 13 years ago • 0 comments

Hi,

Let's take a look at this code snippet:

val foo = "foo".toUpperCase
  //.toLowerCase

If I add, let's say, val bar = "bar" right after the commented line, the last line gets the same indentation level as the previous one.

val foo = "foo".toUpperCase
  //.toLowerCase

  val bar = "bar"

This shouldn't happen, as the commented line should somehow be ignored, and not taken into account when counting the indentation value.

I'll try to make a PR soon.

Samy

Dinduks avatar Oct 31 '12 14:10 Dinduks