Don't move line and /**/ comments during reformat (KT-18805)
#KT-18805 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun x1() = // cx1
|
||||
42
|
||||
|
||||
fun x2() = /* cx2 */
|
||||
42
|
||||
|
||||
fun x3() {
|
||||
1 + // cx4_1
|
||||
2
|
||||
|
||||
1 + /* cx4_2 */
|
||||
2
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
fun x1() = // cx1
|
||||
42
|
||||
|
||||
fun x2() = /* cx2 */
|
||||
42
|
||||
|
||||
fun x3() {
|
||||
1 + // cx4_1
|
||||
2
|
||||
|
||||
1 + /* cx4_2 */
|
||||
2
|
||||
}
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
fun getText(): String =// let's return xxx
|
||||
"xxx" //TODO
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
fun getText(): String =// let's return xxx
|
||||
"xxx"
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
fun getText(): String = /* let's return xxx */
|
||||
fun getText(): String =/* let's return xxx */
|
||||
"xxx" /* TODO */
|
||||
@@ -1,6 +1,6 @@
|
||||
// HIGHLIGHT: INFORMATION
|
||||
|
||||
fun abs(x: Int): Int = // No highlighting here
|
||||
fun abs(x: Int): Int =// No highlighting here
|
||||
if (x > 0) {
|
||||
x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user