Skip to content

Anything related to Edge within <script> tag breaks formatting #2

Description

@McSneaky

Package version

1.0.0

Describe the bug

When using anything Edge related inside <script> tag, formatter goes off to adding too many newlines and empty spaces

For example when this is my test.edge file content:

<script>
  @let(total = 0)
</script>

Then every time I format it, it keeps adding more and more tabs and empty lines

It's especially annoying, when formatOnSave is turned on

Image Image Image Image

Same happens when I have {{ or {{{ inside script tag. For example:

<script>
  let foo = {{ "bar" }}
</script>

Reproduction repo

No response

Metadata

Metadata

Assignees

Labels

StalebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions