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.
This commit is contained in:
parent
5106a124ed
commit
686a1e2f31
2 changed files with 6 additions and 2 deletions
|
@ -1194,7 +1194,7 @@ text-width = 72
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "git-commit"
|
name = "git-commit"
|
||||||
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "bd0ca5a6065f2cada3ac6a82a66db3ceff55fa6b" }
|
source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "db88cffa3952dd2328b741af5d0fc69bdb76704f" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "diff"
|
name = "diff"
|
||||||
|
|
|
@ -10,5 +10,9 @@
|
||||||
(change kind: "modified" @diff.delta)
|
(change kind: "modified" @diff.delta)
|
||||||
(change kind: "renamed" @diff.delta.moved)
|
(change kind: "renamed" @diff.delta.moved)
|
||||||
|
|
||||||
[":" "->" (scissors)] @punctuation.delimiter
|
(trailer
|
||||||
|
key: (trailer_key) @variable.other.member
|
||||||
|
value: (trailer_value) @string)
|
||||||
|
|
||||||
|
[":" "=" "->" (scissors)] @punctuation.delimiter
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
Loading…
Reference in a new issue