Skip to content

Commit

Permalink
Update tree-sitter-git-commit (helix-editor#6692)
Browse files Browse the repository at this point in the history
Trailers are now supported, for example 'Co-authored-by' or
'Signed-off-by'. Commits are also now recognized in message bodies.
  • Loading branch information
the-mikedavis authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 584ffec commit a252be9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ text-width = 72

[[grammar]]
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]]
name = "diff"
Expand Down
6 changes: 5 additions & 1 deletion runtime/queries/git-commit/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
(change kind: "modified" @diff.delta)
(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

0 comments on commit a252be9

Please sign in to comment.