Make J2K pay more attention to original formatting of comments. Better support for KEEP_FIRST_COLUMN_COMMENT

#KT-4175 In Progress
This commit is contained in:
Nikolay Krasko
2016-03-11 12:50:53 +03:00
parent a9f11d2c64
commit 085deec717
3 changed files with 39 additions and 14 deletions
+1 -2
View File
@@ -17,8 +17,7 @@ internal class A /* just a sample name*/ : Runnable /* let's implement Runnable
// end of printing
if (p > 0) {
// do this only when p > 0
if (p > 0) { // do this only when p > 0
// we print 4 and return
println("3")
return // do not continue
+1 -2
View File
@@ -9,8 +9,7 @@ internal class A {
val /*int*/ a /* it's a */ = 2 /* it's 2 */ + 1 /* it's 1 */ // variable a declared
} // end of foo
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int {
/* body is empty */
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int { /* body is empty */
}
private /*it's private*/ val field = 0