Skip to content

Comments inside empty blocks get uncommented #311

@maxnotarangelo

Description

@maxnotarangelo

I'm getting a bug where running the formatter is making the code invalid.

Example code:

foo %i[
  bar
  baz
  qux
], kwarg: {
  # TODO: fill me in
}

After formatting:

foo %i[
    bar
    baz
    qux
  ], kwarg: {
 TODO: fill me in
         }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions