Don't move line and /**/ comments during reformat (KT-18805)

#KT-18805 Fixed
This commit is contained in:
Nikolay Krasko
2017-07-05 20:17:54 +03:00
parent ebdadf30d8
commit 7f8d6b3008
10 changed files with 70 additions and 31 deletions
+13
View File
@@ -0,0 +1,13 @@
fun x1() = // cx1
42
fun x2() = /* cx2 */
42
fun x3() {
1 + // cx4_1
2
1 + /* cx4_2 */
2
}
+13
View File
@@ -0,0 +1,13 @@
fun x1() = // cx1
42
fun x2() = /* cx2 */
42
fun x3() {
1 + // cx4_1
2
1 + /* cx4_2 */
2
}
@@ -1,2 +1,2 @@
fun getText(): String = // let's return xxx
fun getText(): String =// let's return xxx
"xxx" //TODO
@@ -1,2 +1,2 @@
fun getText(): String = // let's return xxx
fun getText(): String =// let's return xxx
"xxx"
@@ -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
}