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

Formatting hash with symbol shorthand and non-symbol key is invalid

maxnotarangelo opened this issue · comments

Pre-formatted:

first = "hello"
hsh = { first:, "second" => "bye" }

After formatting:

first = "hello"
hsh = { :first =>, "second" => "bye" }

This is with version 6.0.0 of syntax_tree.

Thanks!