ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree

Home Page:https://ruby-syntax-tree.github.io/syntax_tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Character literals are formatted incorrectly

mihyaeru21 opened this issue · comments

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