From 686a1e2f311932c2fcfeee6e8384ab8ce959d618 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 10 Apr 2023 10:52:03 -0500 Subject: 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.--- runtime/queries/git-commit/highlights.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/queries') 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 -- cgit v1.2.3-70-g09d2