Skip to content

Parser: Incorrect Conditional element pattern detected #1239

Description

@joelhawksley

Running @herb-tools/linter using main, we are now getting about a hundred invalid errors about conditional element patterns.

I was able to narrow it down to this failing example:

<% if true %>
  <% if true %>
    <div>
      <div></div>
      <% if true %><% end %>
    </div>
  <% else %>
    <div></div>
  <% end %>
<% end %>

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