mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
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
@ -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 New Issue
Block a user