未验证 提交 15bd662f 编写于 作者: M Martin Aeschlimann 提交者: GitHub

Merge pull request #97646 from 9at8/add-shell-extensions

Support more shell script file extensions
......@@ -13,13 +13,45 @@
"languages": [{
"id": "shellscript",
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh", "ksh", "csh"],
"extensions": [".sh", ".bash", ".bashrc", ".bash_aliases", ".bash_profile", ".bash_login", ".ebuild", ".install", ".profile", ".bash_logout", ".zsh", ".zshrc", ".zprofile", ".zlogin", ".zlogout", ".zshenv", ".zsh-theme", ".ksh", ".csh", ".cshrc"],
"extensions": [
".sh",
".bash",
".bashrc",
".bash_aliases",
".bash_profile",
".bash_login",
".ebuild",
".install",
".profile",
".bash_logout",
".zsh",
".zshrc",
".zprofile",
".zlogin",
".zlogout",
".zshenv",
".zsh-theme",
".ksh",
".csh",
".cshrc",
".tcshrc",
".yashrc",
".yash_profile"
],
"filenames": [
"APKBUILD",
"PKGBUILD",
".envrc"
],
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh|ash|qsh|csh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
"APKBUILD",
"PKGBUILD",
".envrc",
".hushlogin",
"zshrc",
"zshenv",
"zlogin",
"zprofile",
"zlogout",
"bashrc_Apple_Terminal",
"zshrc_Apple_Terminal"
],
"firstLine": "^#!.*\\b(bash|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
"configuration": "./language-configuration.json",
"mimetypes": ["text/x-shellscript"]
}],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册