Skip to content

[Bug] Text inside heredoc is incorrectly transformed #18

@yhk1038

Description

@yhk1038

def patterns inside heredoc blocks are incorrectly recognized as method definitions.

text = <<EOT
Lorem ipsum
def x(a: String)
Dolor sit amet
EOT

In the above code, the text def x(a: String) inside the heredoc is being parsed as a method definition.

Text inside heredoc blocks should be skipped during parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions