Skip to content

Parser rejects some heredoc in hash literal #4815

Description

@hanazuki

The following code fragments are accepted by MRI but rejected by mruby. I found it quite inconvenient that long multiline strings cannot be directly included in a hash.

{a: <<X,
X
b: 1}

{a: <<X, b:
X
1}

Tested on cc54257

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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