Skip to content

VSCode: CSS variable style props caused "identifier expected" error #862

@hungtcs

Description

@hungtcs

Describe the bug
REPL: https://svelte.dev/repl/a8a2621ccad241bfa492d2a0502170c7?version=3.35.0

Working well on REPL, but not working on VSCode with Svelte for VSCode.

To Reproduce
Steps to reproduce the behavior:

<script>
  import Nested from './Nested.svelte';
</script>

<Nested name="Svelte" --text-color="red"/>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

System (please complete the following information):

  • OS: elementary OS 5.1.7 Hera
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

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