Skip to content

102.6.0 breaks code highlight for #each blocks when using a collection name starting with "as" #692

@BeardScript

Description

@BeardScript

Describe the bug

Syntax highlight in svelte files is broken on 102.6.0 when using a collection name beginning with "as" in an #each block.

Problem is fixed when going back to 102.5.1

To Reproduce

Create a .svelte file with an #each block with a collection name starting with "as". Syntax highlight will break.

Expected behavior

Well... I guess syntax highlight shouldn't break.

Screenshots

Highlight error

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Additional context

I'm using Svelte with TypeScript. Although, the error is consistent both with and without lang="ts".

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions