Skip to content

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

Closed
@maxnotarangelo

Description

@maxnotarangelo

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.

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