https://github.com/the-mikedavis/tree-sitter-diff
A tree-sitter grammar for `diff` output
https://github.com/the-mikedavis/tree-sitter-diff
diff parser tree-sitter
Last synced: 4 months ago
JSON representation
A tree-sitter grammar for `diff` output
- Host: GitHub
- URL: https://github.com/the-mikedavis/tree-sitter-diff
- Owner: the-mikedavis
- License: mit
- Created: 2021-12-23T22:48:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-05T16:49:58.000Z (about 1 year ago)
- Last Synced: 2025-03-31T23:36:21.119Z (10 months ago)
- Topics: diff, parser, tree-sitter
- Language: JavaScript
- Homepage: https://the-mikedavis.github.io/tree-sitter-diff/
- Size: 811 KB
- Stars: 43
- Watchers: 2
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `tree-sitter-diff`
[![CI][ci-badge]][ci-workflow]
_A [tree-sitter][tree-sitter] grammar for `diff`s_
Highlighting a `.diff` file:

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

[ci-badge]: https://github.com/the-mikedavis/tree-sitter-diff/actions/workflows/ci.yml/badge.svg
[ci-workflow]: https://github.com/the-mikedavis/tree-sitter-diff/actions/workflows/ci.yml
[tree-sitter]: https://tree-sitter.github.io/tree-sitter/
[tree-sitter-git-commit]: https://github.com/the-mikedavis/tree-sitter-git-commit