Open aheber opened 6 days ago
For bonus points, Prettier also seems to do something weird to this though it is less weird. I'll have to submit something on that project too.
class TestClass {
Integer i;
{
/*
test block
*/
}
/*
test block
*/
Integer i2;
{
}
// line
Integer i3;
}
Additional note, I think this is a problem with initialization blocks in general, less about comments.
Example:
class TestClass {
{
}
Integer i2;
}
Formatted:
class TestClass {
{
} Integer i2;
}
An initialization block on a class (and static initialization) will subsume the following comment. In my actual code it was a doc comment for the following method but it had the same behavior as these simpler examples.
This doesn't seem like it would be the correct behavior.
Example:
Formatted: