Skip to content

Character literals are formatted incorrectly #384

Open
@mihyaeru21

Description

@mihyaeru21

A character literal ?" should be formatted to '"' but is actually converted to '\"'. This breaks the behavior of the code.

The string literal "\"" converted in the absence of --plugins=plugin/single_quotes is correct, so this case may not be taken into account.

Environment:

  • Ruby: 3.1.4
  • SyntaxTree: 6.1.1
  • --plugins=plugin/single_quotes

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