Recognize shell-script as shell in modelines (#58124)

shell-script-mode is a valid and commonly used alias for sh-mode in
Emacs.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes N/A

Release Notes:

- Added support for `shell-script` filetype in Vim modelines
This commit is contained in:
Ville Skyttä authored and GitHub committed 2026-06-01 19:33:21 +00:00
1 parent 522eadee16
commit 64ab35c4b6
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@ name = "Shell Script"
code_fence_block_name = "bash"
grammar = "bash"
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", "APKBUILD"]
modeline_aliases = ["sh", "shell", "zsh", "fish"]
modeline_aliases = ["sh", "shell", "shell-script", "zsh", "fish"]
line_comments = ["# "]
first_line_pattern = '^#!.*\b(?:ash|bash|bats|dash|sh|zsh)\b'
autoclose_before = "}])"