Author: Michael Davis [mcarsondavis@gmail.com]
Hash: 71763f583a432cc8561aad2d43df4338c7a13dd5
Timestamp: Sun, 26 Dec 2021 16:48:37 +0000 (2 years ago)

+10 -0 +/-3 browse
add example highlights to readme
1diff --git a/README.md b/README.md
2index 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
20new file mode 100644
21index 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
24new file mode 100644
25index 0000000..18c46da
26 Binary files /dev/null and b/assets/helix-commit-with-diff.png differ