diff options
author | Michael Davis | 2023-04-10 15:52:03 +0000 |
---|---|---|
committer | GitHub | 2023-04-10 15:52:03 +0000 |
commit | 686a1e2f311932c2fcfeee6e8384ab8ce959d618 (patch) | |
tree | 0c297974318fe49e9e4c51432542f34db515b9a5 /runtime | |
parent | 5106a124edc738d5add32a7a862124b9b715e320 (diff) |
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.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/git-commit/highlights.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/queries/git-commit/highlights.scm b/runtime/queries/git-commit/highlights.scm index 20f58ee5..319d7656 100644 --- a/runtime/queries/git-commit/highlights.scm +++ b/runtime/queries/git-commit/highlights.scm @@ -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 |