derekwyatt/vim-scala

Indentation after commented lines

Opened this issue · 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