Update tree-sitter-git-commit (#6692)
Trailers are now supported, for example 'Co-authored-by' or
'Signed-off-by'. Commits are also now recognized in message bodies.
commit686a1e2f311932c2fcfeee6e8384ab8ce959d618
authorMichael Davis <mcarsondavis@gmail.com>
dateMon 10 Apr 2023, 10:52 (4 years ago)
parent5106a12
languages.toml+1−1
@@ -1194,7 +1194,7 @@ text-width = 72
11941194
11951195[[grammar]]
11961196name = "git-commit"
1197−source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "bd0ca5a6065f2cada3ac6a82a66db3ceff55fa6b" }
1197+source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "db88cffa3952dd2328b741af5d0fc69bdb76704f" }
11981198
11991199[[language]]
12001200name = "diff"
runtime/queries/git-commit/highlights.scm+5−1
@@ -10,5 +10,9 @@
1010(change kind: "modified" @diff.delta)
1111(change kind: "renamed" @diff.delta.moved)
1212
13−[":" "->" (scissors)] @punctuation.delimiter
13+(trailer
14+ key: (trailer_key) @variable.other.member
15+ value: (trailer_value) @string)
16+
17+[":" "=" "->" (scissors)] @punctuation.delimiter
1418(comment) @comment