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

{% set content %} block syntax incorrectly transformed into {% set content = %} #66

Open
1 task done
vvvctr opened this issue Feb 27, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@vvvctr
Copy link

vvvctr commented Feb 27, 2023

Description

set block syntax is turned into a single-line assignment expression.

Expected behavior

The block's content should not be deleted/turned into an assignment expression and should be formated like tags with block syntax ({% module_attribute "content" %}...{% end_module_attribute %}).

To Reproduce

Original Source Code:

  <!-- prettier-ignore -->
  {% set content %}
    <section>
      <header><h1>Lorem ipsum dolor sit amet consectetur</h1></header>
      <footer>Quo, temporibus deserunt</footer>
    </section>
  {% endset %}
  <!-- prettier-ignore -->

Formatted Source Code:

  <!-- prettier-ignore -->
  {% set content =  %}
  <!-- prettier-ignore -->

Additional context

It is also worth noting that is not working, although that has already been implicitly reported here: #27

Checklist

  • I have checked the known issues to make sure this isn’t already a known issue.
@vvvctr vvvctr added the bug Something isn't working label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant