mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
![jokurz](/assets/img/avatar_default.png)
Identify ksh scripts (file extenstion `.ksh` or `#!/usr/bin/ksh` in first line) as shellscript. Fixes #39096
28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"name": "shellscript",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"engines": { "vscode": "*" },
|
|
"scripts": {
|
|
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-shellscript grammars/shell-unix-bash.cson ./syntaxes/shell-unix-bash.tmLanguage.json"
|
|
},
|
|
"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"],
|
|
"filenames": ["PKGBUILD"],
|
|
"firstLine": "^#!.*\\b(bash|zsh|sh|tcsh|ksh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
|
|
"configuration": "./language-configuration.json",
|
|
"mimetypes": ["text/x-shellscript"]
|
|
}],
|
|
"grammars": [{
|
|
"language": "shellscript",
|
|
"scopeName": "source.shell",
|
|
"path": "./syntaxes/shell-unix-bash.tmLanguage.json"
|
|
}]
|
|
}
|
|
}
|