zed
zed copied to clipboard
Svelte highlighting broken with string interpolation
trafficstars
Check for existing issues
- [x] Completed
Describe the bug / provide steps to reproduce it
Syntax highlighting is broken when using string interpolation inside Svelte templates.
<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
Just to add another example, see below, starting at {:else if tabSet === 1}: