snazzy-d/sdc

sdfmt: comment eats the next line

belka-ew opened this issue · 2 comments

sdfmt formatting breaks the code after a comment.

@@ -1,6 +1,4 @@
 void f() {
-    try {
-    } // After formatting catch will be in this line as comment
-    catch (Exception) {
-    }
+	try {} // After formatting catch will be in this line as comment catch (
+		Exception) {}
 }

Here catch is moved into the comment and the code doesn't compile anymore.

This is fixed now, isn't it?

Yes, it is.