|
|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
# 支持语言
|
|
|
|
|
# 支持的语言
|
|
|
|
|
|
|
|
|
|
本页列出了 difftastic 支持的所有语言。你也可以用`difft --list-languages`查看你当前安装的版本所支持的语言。
|
|
|
|
|
本页列出了 Difftastic 支持的所有语言。你也可以用 `difft --list-languages` 查看你当前安装的版本所支持的语言。
|
|
|
|
|
|
|
|
|
|
## 编程语言
|
|
|
|
|
|
|
|
|
|
| 语言 | 使用的解析器 |
|
|
|
|
|
| 语言 | 使用的解析器 |
|
|
|
|
|
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
|
| Bash | [tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash) |
|
|
|
|
|
| C | [tree-sitter/tree-sitter-c](https://github.com/tree-sitter/tree-sitter-c) |
|
|
|
|
|
@ -17,10 +17,12 @@
|
|
|
|
|
| Elixir | [elixir-lang/tree-sitter-elixir](https://github.com/elixir-lang/tree-sitter-elixir) |
|
|
|
|
|
| Elm | [elm-tooling/tree-sitter-elm](https://github.com/elm-tooling/tree-sitter-elm) |
|
|
|
|
|
| Elvish | [ckafi/tree-sitter-elvish](https://github.com/ckafi/tree-sitter-elvish) |
|
|
|
|
|
| Erlang | [WhatsApp/tree-sitter-erlang](https://github.com/WhatsApp/tree-sitter-erlang) |
|
|
|
|
|
| Emacs Lisp | [wilfred/tree-sitter-elisp](https://github.com/Wilfred/tree-sitter-elisp) |
|
|
|
|
|
| Gleam | [gleam-lang/tree-sitter-gleam](https://github.com/gleam-lang/tree-sitter-gleam) |
|
|
|
|
|
| Go | [tree-sitter/tree-sitter-go](https://github.com/tree-sitter/tree-sitter-go) |
|
|
|
|
|
| Hack | [slackhq/tree-sitter-hack](https://github.com/slackhq/tree-sitter-hack) |
|
|
|
|
|
| Hare | [ecmma/tree-sitter-hare](https://git.sr.ht/~ecmma/tree-sitter-hare) |
|
|
|
|
|
| Haskell | [tree-sitter/tree-sitter-haskell](https://github.com/tree-sitter/tree-sitter-haskell) |
|
|
|
|
|
| Janet | [sogaiu/tree-sitter-janet-simple](https://github.com/sogaiu/tree-sitter-janet-simple) |
|
|
|
|
|
| Java | [tree-sitter/tree-sitter-java](https://github.com/tree-sitter/tree-sitter-java) |
|
|
|
|
|
@ -34,6 +36,9 @@
|
|
|
|
|
| Perl | [ganezdragon/tree-sitter-perl](https://github.com/ganezdragon/tree-sitter-perl) |
|
|
|
|
|
| PHP | [tree-sitter/tree-sitter-php](https://github.com/tree-sitter/tree-sitter-php) |
|
|
|
|
|
| Python | [tree-sitter/tree-sitter-python](https://github.com/tree-sitter/tree-sitter-python) |
|
|
|
|
|
| QML | [tree-sitter/tree-sitter-qmljs](https://github.com/yuja/tree-sitter-qmljs) |
|
|
|
|
|
| R | [r-lib/tree-sitter-r](https://github.com/r-lib/tree-sitter-r) |
|
|
|
|
|
| Racket | [6cdh/tree-sitter-racket](https://github.com/6cdh/tree-sitter-racket) |
|
|
|
|
|
| Ruby | [tree-sitter/tree-sitter-ruby](https://github.com/tree-sitter/tree-sitter-ruby) |
|
|
|
|
|
| Rust | [tree-sitter/tree-sitter-rust](https://github.com/tree-sitter/tree-sitter-rust) ([forked](https://github.com/Wilfred/tree-sitter-rust/tree/non_special_token)) |
|
|
|
|
|
| Scala | [tree-sitter/tree-sitter-scala](https://github.com/tree-sitter/tree-sitter-scala) |
|
|
|
|
|
@ -43,13 +48,13 @@
|
|
|
|
|
| Zig | [maxxnino/tree-sitter-zig](https://github.com/maxxnino/tree-sitter-zig) |
|
|
|
|
|
|
|
|
|
|
## 结构化文本格式
|
|
|
|
|
|
|
|
|
|
| 语言 | 使用的解析器 |
|
|
|
|
|
1
|
|
|
|
|
| 语言 | 使用的解析器 |
|
|
|
|
|
|----------|-----------------------------------------------------------------------------------|
|
|
|
|
|
| CSS | [tree-sitter/tree-sitter-css](https://github.com/tree-sitter/tree-sitter-css) |
|
|
|
|
|
| HCL | [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl) |
|
|
|
|
|
| HTML | [tree-sitter/tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) |
|
|
|
|
|
| JSON | [tree-sitter/tree-sitter-json](https://github.com/tree-sitter/tree-sitter-json) |
|
|
|
|
|
| Newick | [delehef/tree-sitter-newick](https://github.com/delehef/tree-sitter-newick) |
|
|
|
|
|
| TOML | [ikatyang/tree-sitter-toml](https://github.com/ikatyang/tree-sitter-toml) |
|
|
|
|
|
| YAML | [ikatyang/tree-sitter-yaml](https://github.com/ikatyang/tree-sitter-yaml) |
|
|
|
|
|
|
|
|
|
|
|