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.

Add autoclosing braces for Shell Scripts (#20278)

Peter Tripp815385cc5f7d
diff --git a/crates/languages/src/bash/config.toml b/crates/languages/src/bash/config.toml
index 0a1deb3e692..08bb8ee0957 100644
--- a/crates/languages/src/bash/config.toml
+++ b/crates/languages/src/bash/config.toml
@@ -7,5 +7,7 @@ first_line_pattern = '^#!.*\b(?:ash|bash|dash|sh|zsh)\b'
brackets = [
{ start = "[", end = "]", close = true, newline = false },
{ start = "(", end = ")", close = true, newline = false },
+ { start = "{", end = "}", close = true, newline = false },
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["comment", "string"] },
+ { start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
]