Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix: Comment shortcut in Svelte files now respects if the line(s) are HTML vs JS/TS (#5860)

Chase Weavercf3b4b0ba79e
diff --git a/crates/zed/src/languages/svelte/config.toml b/crates/zed/src/languages/svelte/config.toml
index 76f03493b55..ff450f3f847 100644
--- a/crates/zed/src/languages/svelte/config.toml
+++ b/crates/zed/src/languages/svelte/config.toml
@@ -1,6 +1,6 @@
name = "Svelte"
path_suffixes = ["svelte"]
-line_comment = "// "
+block_comment = ["<!-- ", " -->"]
autoclose_before = ";:.,=}])>"
brackets = [
{ start = "{", end = "}", close = true, newline = true },