Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for curly braces loop syntax #5

Open
odrevet opened this issue Sep 6, 2022 · 1 comment
Open

Support for curly braces loop syntax #5

odrevet opened this issue Sep 6, 2022 · 1 comment
Assignees
Labels
looking for contributions This issue was accepted and is looking for a pull-request

Comments

@odrevet
Copy link

odrevet commented Sep 6, 2022

The following ERB :

<div>
  <% @myarray.each { |element| %> ...  <% } %>
</div>

Raise the following error :

==> FORMATTED:
<div>
  <% @myarray.each { |element| %>...<% } %>
==> STACK:
[["div", "<div>"], ["%erb%", "@myarray.each { |element|"], ["%erb%", ""]]

==> ERROR: Unmatched close tag, tried with ["div", "</div>"], but ["%erb%", ""] was on the stack

Could the curly loop syntax be supported ?

@odrevet odrevet changed the title Support for curly loop syntax Support for curly braces loop syntax Sep 6, 2022
@elia
Copy link
Member

elia commented Jan 17, 2023

I think this is a bit harder and at the moment I don't have the time it would require, but happy to review a PR if you wanna take up the challenge 🙌

@elia elia self-assigned this Jul 7, 2023
@elia elia added the looking for contributions This issue was accepted and is looking for a pull-request label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
looking for contributions This issue was accepted and is looking for a pull-request
Projects
None yet
Development

No branches or pull requests

2 participants