This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 Failed to recognize Instanciation Expression followed by newline #3793
Labels
S-To triage
Status: user report of a possible bug that needs to be triaged
Environment information
What happened?
Rome cli fails to format the following code.
If there is a trailing semicolon on the instanciation expression, it works.
My
rome.json
.I just noticed that Github markdown has same issue :/, but I guess this is a valid syntax for typescript since it is compiled well by
tsc
.https://www.typescriptlang.org/play?#code/MYGwhgzhAEBiD28A8AVAfNA3gXwFC+HgDsIAXaAITACdoBeORJM6gSyIHM0DizKwAXvWgBGAEwBmXEA
Expected result
If there is a newline between them, both of them should be recognized as an Instanciation Expression.
Code of Conduct
The text was updated successfully, but these errors were encountered: