mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Autodetect csh script as shellscript
Identify csh scripts (file extenstion `.csh` or `#!/usr/bin/csh` in first line) as shellscript.
This commit is contained in:
parent
1a34450858
commit
e7f9230340
|
@ -12,10 +12,10 @@
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"languages": [{
|
"languages": [{
|
||||||
"id": "shellscript",
|
"id": "shellscript",
|
||||||
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh", "ksh"],
|
"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"],
|
"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"],
|
||||||
"filenames": ["APKBUILD", "PKGBUILD"],
|
"filenames": ["APKBUILD", "PKGBUILD"],
|
||||||
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh|ash|qsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
|
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh|ash|qsh|csh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
|
||||||
"configuration": "./language-configuration.json",
|
"configuration": "./language-configuration.json",
|
||||||
"mimetypes": ["text/x-shellscript"]
|
"mimetypes": ["text/x-shellscript"]
|
||||||
}],
|
}],
|
||||||
|
|
Loading…
Reference in a new issue