以下の表記だと`python`の部分。
~~~markdown
```python
def main():
pass
```
~~~
[github/linguist]リポジトリの`languages.yml`を見れば分かる。
[github/linguist]: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
使えるのは以下2箇所に定義された文字列。
- [[YAML]]のキー
- `aliases`
たとえば[[Shell]]の場合は[[YAML]]の定義が以下のようになっている。
```yaml
Shell:
type: programming
color: "#89e051"
aliases:
- sh
- shell-script
- bash
- zsh
extensions:
- ".sh"
- ".bash"
- ".bats"
- ".cgi"
- ".command"
- ".env"
- ".fcgi"
- ".ksh"
- ".sh.in"
- ".tmux"
- ".tool"
- ".zsh"
filenames:
- ".bash_aliases"
- ".bash_history"
- ".bash_logout"
- ".bash_profile"
- ".bashrc"
- ".cshrc"
- ".env"
- ".env.example"
- ".flaskenv"
- ".login"
- ".profile"
- ".zlogin"
- ".zlogout"
- ".zprofile"
- ".zshenv"
- ".zshrc"
- 9fs
- PKGBUILD
- bash_aliases
- bash_logout
- bash_profile
- bashrc
- cshrc
- gradlew
- login
- man
- profile
- zlogin
- zlogout
- zprofile
- zshenv
- zshrc
interpreters:
- ash
- bash
- dash
- ksh
- mksh
- pdksh
- rc
- sh
- zsh
tm_scope: source.shell
ace_mode: sh
codemirror_mode: shell
codemirror_mime_type: text/x-sh
language_id: 346
```
なので使えるものは以下5つ。
- shell
- sh
- shell-script
- bash
- zsh