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:
Helloimbob 2020-02-17 15:51:57 +00:00 committed by GitHub
parent 1a34450858
commit e7f9230340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,10 @@
"contributes": {
"languages": [{
"id": "shellscript",
"aliases": ["Shell Script", "shellscript", "bash", "sh", "zsh", "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"],
"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"],
"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",
"mimetypes": ["text/x-shellscript"]
}],