zed icon indicating copy to clipboard operation
zed copied to clipboard

Svelte syntax highlighting breaks using `context="module"` with Javascript

Open corneliusio opened this issue 10 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When using context="module" on a script tag in Svelte that is also using Javascript (not Typescript) syntax highlighting completely breaks in the context="module" script tags.

Highlighting can be restored temporarily by removing the module value from the attribute and re-adding. However it will break again if any content of the script tag is edited.

Environment

Zed: v0.131.7 (Zed) OS: macOS 14.3.1 Memory: 32 GiB Architecture: aarch64

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

Screenshot 2024-04-23 at 9 40 52 AM

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

No response

corneliusio avatar Apr 23 '24 14:04 corneliusio