Skip to content

Bug: forge fmt does not handle line comments in blocks correctly #2410

Closed
@rkrasiuk

Description

@rkrasiuk

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

No response

What command(s) is the bug in?

forge fmt

Operating System

No response

Describe the bug

The same code snippets below should remain preserved

{
  // do smth here
  
  // then here
  
  // cleanup
}
{
  statement; // comment
  
  // line comment
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions