支持语言

本页列出了 difftastic 支持的所有语言。你也可以用difft --list-languages查看你当前安装的版本所支持的语言。

编程语言

语言使用的解析器
Bashtree-sitter/tree-sitter-bash
Ctree-sitter/tree-sitter-c
C++tree-sitter/tree-sitter-cpp
C#tree-sitter/tree-sitter-c-sharp
Clojuresogaiu/tree-sitter-clojure (branched)
CMakeuyha/tree-sitter-cmake
Common LisptheHamsta/tree-sitter-commonlisp
DartUserNobody14/tree-sitter-dart
Elixirelixir-lang/tree-sitter-elixir
Elmelm-tooling/tree-sitter-elm
Elvishckafi/tree-sitter-elvish
Emacs Lispwilfred/tree-sitter-elisp
Gleamgleam-lang/tree-sitter-gleam
Gotree-sitter/tree-sitter-go
Hackslackhq/tree-sitter-hack
Haskelltree-sitter/tree-sitter-haskell
Janetsogaiu/tree-sitter-janet-simple
Javatree-sitter/tree-sitter-java
JavaScript, JSXtree-sitter/tree-sitter-javascript
Juliatree-sitter/tree-sitter-julia
Kotlinfwcd/tree-sitter-kotlin
Luanvim-treesitter/tree-sitter-lua
Makealemuller/tree-sitter-make
Nixcstrahan/tree-sitter-nix
OCamltree-sitter/tree-sitter-ocaml
Perlganezdragon/tree-sitter-perl
PHPtree-sitter/tree-sitter-php
Pythontree-sitter/tree-sitter-python
Rubytree-sitter/tree-sitter-ruby
Rusttree-sitter/tree-sitter-rust (forked)
Scalatree-sitter/tree-sitter-scala
SQLm-novikov/tree-sitter-sql
Swiftalex-pinkus/tree-sitter-swift
TypeScript, TSXtree-sitter/tree-sitter-typescript
Zigmaxxnino/tree-sitter-zig

结构化文本格式

语言使用的解析器
CSStree-sitter/tree-sitter-css
HCLMichaHoffmann/tree-sitter-hcl
HTMLtree-sitter/tree-sitter-html
JSONtree-sitter/tree-sitter-json
TOMLikatyang/tree-sitter-toml
YAMLikatyang/tree-sitter-yaml