Skip to content

Parser: HTML-like content in javascript_tag helperΒ #1426

@marcoroth

Description

@marcoroth

Bug Report

The following produces a parser error with and without action_view_helpers enabled:

<%= javascript_tag do %>
  n <o.length
<% end %>

Also, see: #991 and #1374

Reproduction

You can reproduce this issue using the following playground link:

https://herb-tools.dev/playground/?options=%7B%22action_view_helpers%22%3Atrue%7D#DwUgvABAVghgbjAzgYwE4EsAOAXA+tmAcwgBMB7CEAPgCgIIA7CYMgOgBsBTBw7ACxqgI3EpSpA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcparser

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions