Skip to content

Parser: Incorrect MissingERBEndTagError when yielding from block #1770

Description

@ccutrer

test.erb:

<%
  meth do
    yield
  end
%>

test.rb:

require "herb"

result = Herb.parse(File.read("test.erb"))
puts result.errors.inspect # I would expect this to be an empty array

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcparser

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions