Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/git-commit/highlights.scm')
-rw-r--r--runtime/queries/git-commit/highlights.scm26
1 files changed, 11 insertions, 15 deletions
diff --git a/runtime/queries/git-commit/highlights.scm b/runtime/queries/git-commit/highlights.scm
index bc84d037..20f58ee5 100644
--- a/runtime/queries/git-commit/highlights.scm
+++ b/runtime/queries/git-commit/highlights.scm
@@ -1,18 +1,14 @@
-[(comment) (generated_comment) (scissor)] @comment
(subject) @markup.heading
+(path) @string.special.path
(branch) @string.special.symbol
-(filepath) @string.special.path
-(arrow) @punctuation.delimiter
-(subject (subject_prefix) @function)
-(prefix (type) @keyword)
-(prefix (scope) @variable.parameter)
-(prefix [ "(" ")" ":" ] @punctuation.delimiter)
-(prefix "!" @punctuation.special)
-(trailer (token) @variable.other.member)
-(trailer (value) @string)
-(breaking_change (token) @special)
+(commit) @constant
+(item) @markup.link.url
+(header) @tag
-(change kind: (new)) @diff.plus
-(change kind: (deleted)) @diff.minus
-(change kind: (modified)) @diff.delta
-(change kind: [(renamed) (typechange)]) @diff.delta.moved
+(change kind: "new file" @diff.plus)
+(change kind: "deleted" @diff.minus)
+(change kind: "modified" @diff.delta)
+(change kind: "renamed" @diff.delta.moved)
+
+[":" "->" (scissors)] @punctuation.delimiter
+(comment) @comment