ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree
https://ruby-syntax-tree.github.io/syntax_tree/
MIT License
563 stars 54 forks source link

Character literals are formatted incorrectly #384

Open mihyaeru21 opened 1 year ago

mihyaeru21 commented 1 year ago

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: