Skip to content

ERB-tag with if and end fails to parse #60

Closed
@davidwessman

Description

ERB-snippet

<%= if this
  value
end %>

Expected

<%= if this
  value
end %>

or

<% if this %>
  <%= value %>
<% end %>

Actual formatting

Fails to parse

SyntaxTree::ERB::Parser::ParseError: Found no matching erb-tag to the if-tag at line 1,char 0 to line 3, char 125

Comment

Versions

syntax_tree: v6.1.1
syntax_tree-erb: v0.10.2

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions