Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character literals are formatted incorrectly #384

Open
mihyaeru21 opened this issue Jun 12, 2023 · 0 comments · May be fixed by #385
Open

Character literals are formatted incorrectly #384

mihyaeru21 opened this issue Jun 12, 2023 · 0 comments · May be fixed by #385

Comments

@mihyaeru21
Copy link

mihyaeru21 commented Jun 12, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant