zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.97k stars 2.83k forks source link

Svelte highlighting broken with string interpolation #7774

Open TheCymaera opened 7 months ago

TheCymaera commented 7 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Syntax highlighting is broken when using string interpolation inside Svelte templates.

Screenshot 2024-02-14 at 22 35 11

<Card className="p-4 mb-4 {value.type ? "" : "hidden"}">
    <div>Type: {value.type}</div>
</Card>

Environment

Zed: v0.121.7 (Zed) OS: macOS 14.3.1 Memory: 36 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

alstat commented 7 months ago

Just to add another example, see below, starting at {:else if tabSet === 1}:

Screen Shot 2024-03-06 at 6 16 34 AM

AlbertMarashi commented 1 month ago

This is an issue with the svelte treesitter repository, rather than zed