Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use shell script language for bats files (#24877)
Étienne BERSACe6749b5955ad
diff --git a/crates/languages/src/bash/config.toml b/crates/languages/src/bash/config.tomlindex 9f1cfe4a352..d8c348e4926 100644--- a/crates/languages/src/bash/config.toml+++ b/crates/languages/src/bash/config.toml@@ -1,9 +1,9 @@name = "Shell Script"code_fence_block_name = "bash"grammar = "bash"-path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD"]+path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "bats", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD"]line_comments = ["# "]-first_line_pattern = '^#!.*\b(?:ash|bash|dash|sh|zsh)\b'+first_line_pattern = '^#!.*\b(?:ash|bash|bats|dash|sh|zsh)\b'brackets = [{ start = "[", end = "]", close = true, newline = false },{ start = "(", end = ")", close = true, newline = true },