Skip to content

Parser rejects some heredoc in hash literal #4815

Closed
@hanazuki

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

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