Home

Awesome

tree-sitter-diff

CI

A tree-sitter grammar for diffs

Highlighting a .diff file:

<img src="assets/diff.png" width="500"/>

Injecting this grammar into tree-sitter-git-commit in a verbose commit (git commit --verbose):

<img src="assets/helix-commit-with-diff.png" width="500"/>