$ tree-sitter parse -- '/home/wilfred/.emacs.d/**/*.el' --quiet --stat
Total parses: 2272; successful parses: 2271; failed parses: 1; success percentage: 99.96%
It's super easy to test a tree-sitter parser against a large corpus, and to iron out the details!
miniblog.
Related Posts
@skybert@emacs.ch Difftastic has very little unsafe, just the FFI to tree-sitter libraries.
That said, I've actually seen safe Rust segfault in the past!
The next version of difftastic will support parsing CSS and JS syntax inside HTML! This makes a huge difference to HTML files.
This support for tree-sitter sub-parsers was contributed by Sesse :)
Difftastic 0.31 is released:
* Two new languages: Hacklang and SQL
* Updates to: C#, Dart, Elm, Gleam, Haskell, HCL, Java, JSON, OCaml, PHP, Python, Ruby, Scala and TypeScript
The tree-sitter parser maintainers have been busy!



