Skip to content

handlebars attrbutes changed: {{@x.y.z}} becomes {{@x}} #16356

@happydude

Description

@happydude

Prettier 3.3.1
Playground link

--parser glimmer

Input:

  <div     class="entry"    >
  <h1>{{  title    }}</h1>
  <div   class="body">
    {{@x.y.z}}
            {{   body         }}
</div> </div>

Output:

<div class="entry">
  <h1>{{title}}</h1>
  <div class="body">
    {{@x}}
    {{body}}
  </div>
</div>

Expected behavior:
Starting with 3.3.1 {{@x.y.z}} is output as {{@x}} , if I add --debug-check it will catch that the output is different

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood fist issue!help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:handlebarsIssues affecting Handlebars (Glimmer)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions