Skip to content

Incorrect MissingClosingTagError/MissingOpeningTagError #856

@joelhawksley

Description

@joelhawksley

Hi folks! I'm working to test Herb/ReActionView against various GitHub projects and just ran into what I believe is an incorrect error:

<% if @with_icon %>
  <div class="icon">
<% end %>
...
<% if @with_icon %>
  </div>
<% end %>

Raises MissingClosingTagError/MissingOpeningTagError, when it should not.

The actual file highlighting this issue is https://github.com/primer/view_components/blob/c1845c65c3d7aaae3abb31f9846279783734974e/app/components/primer/alpha/auto_complete/auto_complete.html.erb, but the sample provided here raises the same errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparser

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions