039a10a34c
When indenting on newline in Go files, only remove trailing whitespace on the previous line and copy indentation of the previous line if in comment context. Added regression tests.
16 lines
71 B
Plaintext
16 lines
71 B
Plaintext
1
|
|
// foo(bar,
|
|
//
|
|
|
|
2
|
|
// foo(bar,
|
|
//
|
|
|
|
3
|
|
// foo{
|
|
//
|
|
|
|
4
|
|
// foo{
|
|
//
|