Commit
+10 -0 +/-3 browse
1 | diff --git a/README.md b/README.md |
2 | index 96350e8..6d86d55 100644 |
3 | --- a/README.md |
4 | +++ b/README.md |
5 | @@ -7,3 +7,13 @@ A [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for `git dif |
6 | ### Status |
7 | |
8 | Working, but needs more testing. |
9 | + |
10 | + ### Examples |
11 | + |
12 | + Highlighting a `.diff` file: |
13 | + |
14 | + <img src="assets/diff.png" width="500"/> |
15 | + |
16 | + Injecting this grammar into [tree-sitter-git-commit](https://github.com/the-mikedavis/tree-sitter-git-commit) in a verbose commit (`git commit --verbose`): |
17 | + |
18 | + <img src="assets/helix-commit-with-diff.png" width="500"/> |
19 | diff --git a/assets/diff.png b/assets/diff.png |
20 | new file mode 100644 |
21 | index 0000000..976080f |
22 | Binary files /dev/null and b/assets/diff.png differ |
23 | diff --git a/assets/helix-commit-with-diff.png b/assets/helix-commit-with-diff.png |
24 | new file mode 100644 |
25 | index 0000000..18c46da |
26 | Binary files /dev/null and b/assets/helix-commit-with-diff.png differ |