diff grammar for the tree-sitter parsing library
  • CMake 49.2%
  • JavaScript 42.9%
  • Tree-sitter Query 7.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Reynard User baf42319cd
Some checks failed
CI / Validate queries (push) Has been cancelled
CI / Test parser (push) Has been cancelled
CI / Test parser-1 (push) Has been cancelled
CI / Test parser-2 (push) Has been cancelled
chore: sync dependencies (monorepo)
2026-04-17 10:40:01 +02:00
.github/workflows ci: update workflows 2025-10-29 19:12:25 +01:00
assets add example highlights to readme 2021-12-26 10:48:37 -06:00
bindings Update to use vendored tree-sitter-language and fix Rust 2024 2026-04-14 01:54:51 +02:00
docs rebrand as tree-sitter-diff 2022-03-02 07:54:28 -06:00
queries feat(queries): add reference queries 2025-10-29 19:12:25 +01:00
src release v0.1.0 2025-10-29 19:12:25 +01:00
test/corpus Support comments (#15) 2024-06-30 08:04:00 -05:00
.editorconfig Update tree-sitter-cli to 0.23, generate bindings 2024-10-13 12:42:02 -04:00
.gitattributes chore(bindings): update with tree-sitter 0.25.10 2025-10-29 19:12:25 +01:00
.gitignore chore(bindings): update with tree-sitter 0.25.10 2025-10-29 19:12:25 +01:00
.tsqueryrc.json ci: update workflows 2025-10-29 19:12:25 +01:00
binding.gyp Update tree-sitter-cli to 0.23, generate bindings 2024-10-13 12:42:02 -04:00
Cargo.toml chore: sync dependencies (monorepo) 2026-04-17 10:40:01 +02:00
CMakeLists.txt release v0.1.0 2025-10-29 19:12:25 +01:00
go.mod Update tree-sitter-cli to 0.23, generate bindings 2024-10-13 12:42:02 -04:00
grammar.js chore(bindings): update with tree-sitter 0.25.10 2025-10-29 19:12:25 +01:00
LICENSE add LICENSE 2021-12-23 16:59:56 -06:00
Makefile release v0.1.0 2025-10-29 19:12:25 +01:00
package-lock.json release v0.1.0 2025-10-29 19:12:25 +01:00
package.json release v0.1.0 2025-10-29 19:12:25 +01:00
Package.swift SPM support (#6) 2023-02-12 12:20:38 -06:00
pyproject.toml release v0.1.0 2025-10-29 19:12:25 +01:00
README.md fix links in readme 2022-03-02 08:09:20 -06:00
setup.py chore(bindings): update with tree-sitter 0.25.10 2025-10-29 19:12:25 +01:00
tree-sitter.json release v0.1.0 2025-10-29 19:12:25 +01:00

tree-sitter-diff

CI

A tree-sitter grammar for diffs

Highlighting a .diff file:

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