Closed
Description
Describe the bug
The expectation here is probably that the comment stays where it is.
Input file
class Main
{
public static function main()
{
if (foo)
{
bar;
}
else // comment
{
bar;
}
}
}
Broken output
class Main
{
public static function main()
{
if (foo)
{
bar;
}
else
// comment
{
bar;
}
}
}
Optional: hxformat.json
{
"lineEnds": {
"leftCurly": "both"
},
"sameLine": {
"ifElse": "next"
}
}