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.

Normalize `line_comments` strings to have a trailing space (#51033)

Justin Su7132b67962e2
diff --git a/crates/languages/src/gitcommit/config.toml b/crates/languages/src/gitcommit/config.toml
index c2421ce0061..83cd6f550e3 100644
--- a/crates/languages/src/gitcommit/config.toml
+++ b/crates/languages/src/gitcommit/config.toml
@@ -7,7 +7,7 @@ path_suffixes = [
"NOTES_EDITMSG",
"EDIT_DESCRIPTION",
]
-line_comments = ["#"]
+line_comments = ["# "]
brackets = [
{ start = "(", end = ")", close = true, newline = false },
{ start = "`", end = "`", close = true, newline = false },
diff --git a/crates/languages/src/gomod/config.toml b/crates/languages/src/gomod/config.toml
index e70c9358bfc..d151db96110 100644
--- a/crates/languages/src/gomod/config.toml
+++ b/crates/languages/src/gomod/config.toml
@@ -2,7 +2,7 @@ name = "Go Mod"
code_fence_block_name = "go.mod"
grammar = "gomod"
path_suffixes = ["mod"]
-line_comments = ["//"]
+line_comments = ["// "]
autoclose_before = ")"
brackets = [
{ start = "(", end = ")", close = true, newline = true}
diff --git a/crates/languages/src/gowork/config.toml b/crates/languages/src/gowork/config.toml
index 68beb073ab6..90e62f0cf10 100644
--- a/crates/languages/src/gowork/config.toml
+++ b/crates/languages/src/gowork/config.toml
@@ -2,7 +2,7 @@ name = "Go Work"
code_fence_block_name = "gowork"
grammar = "gowork"
path_suffixes = ["work"]
-line_comments = ["//"]
+line_comments = ["// "]
autoclose_before = ")"
brackets = [
{ start = "(", end = ")", close = true, newline = true}