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.
12 lines
69 B
Plaintext
12 lines
69 B
Plaintext
1
|
|
// foo(bar,%( )
|
|
|
|
2
|
|
// foo(bar,%( )
|
|
|
|
3
|
|
// foo{%( )
|
|
|
|
4
|
|
// foo{%( )
|