From a209865454e855ede6774e2ecc0f83ae4ca94fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A3=E6=80=9D=E8=B7=AF=28=E3=81=AA=E3=81=97=E3=82=8D?= =?UTF-8?q?=29?= <10971185+mnipritom@users.noreply.github.com> Date: Mon, 31 Aug 2026 09:04:16 +0000 Subject: [PATCH] Recognize `.bash_login` as shell script (#63466) Added `.bash_login` to the list of recognized shell script files for syntax highlighting. Shoutout: [acidx27x](https://github.com/acidx27x) for #62720 Release Notes: - Added shell script language detection for `.bash_login` files. --- crates/grammars/src/bash/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/grammars/src/bash/config.toml b/crates/grammars/src/bash/config.toml index 210cfe0387..193a515f87 100644 --- a/crates/grammars/src/bash/config.toml +++ b/crates/grammars/src/bash/config.toml @@ -1,7 +1,7 @@ name = "Shell Script" code_fence_block_name = "bash" grammar = "bash" -path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "brushrc", "bats", "envrc", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD", "APKBUILD", "ebuild"] +path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_login", "bash_logout", "brushrc", "bats", "envrc", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD", "APKBUILD", "ebuild"] modeline_aliases = ["sh", "shell", "shell-script", "zsh"] line_comments = ["# "] first_line_pattern = '^#!.*\b(?:ash|bash|bats|dash|sh|zsh)\b'