Omar Valdez 5 months ago
69 commits
19dd5aa5 main
Generate parser
File Commit Size Mode Time
.gitattributes mark tree-sitter-generated files as generated 73 B -rw-r--r-- 2 years ago
.github Run CI on pushes and pull requests NaN B d--------- 1 year ago
.gitignore SPM support (#6) 55 B -rw-r--r-- 1 year ago
Cargo.toml rebrand as tree-sitter-diff 521 B -rw-r--r-- 2 years ago
LICENSE add LICENSE 1 KiB -rw-r--r-- 2 years ago
Package.swift SPM support (#6) 1.1 KiB -rw-r--r-- 1 year ago
README.md fix links in readme 689 B -rw-r--r-- 2 years ago
assets add example highlights to readme NaN B d--------- 2 years ago
binding.gyp rebrand as tree-sitter-diff 375 B -rw-r--r-- 2 years ago
bindings SPM support (#6) NaN B d--------- 1 year ago
docs rebrand as tree-sitter-diff NaN B d--------- 2 years ago
grammar.js Support comments (#15) 2.7 KiB -rw-r--r-- 5 months ago
package-lock.json js: Update dependencies 2.3 KiB -rw-r--r-- 1 year ago
package.json Only list diff as supported file-types 922 B -rw-r--r-- 2 years ago
queries Add example highlights NaN B d--------- 2 years ago
src Generate parser NaN B d--------- 5 months ago
test Support comments (#15) NaN B d--------- 5 months ago

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):

Clone

HTTP

Subscribe

License

MIT

Authors

Michael Davis: 85%
Riley Bruins: 5%
Michael Davis: 2%
the-mikedavis: 1%
Danilo Spinella: 1%

Analysis