Skip to content

Commit

Permalink
add gitcommit highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and archseer committed Dec 25, 2021
1 parent fd31662 commit 78f9323
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions runtime/queries/gitcommit/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(subject) @markup.heading
(path) @string.special.path
(branch) @string.special.symbol
(commit) @constant
(item) @markup.link.url
(header) @tag

(change kind: "new file" @diff.plus)
(change kind: "deleted" @diff.minus)
(change kind: "modified" @diff.delta)
(change kind: "renamed" @diff.delta.moved)

[":" "->"] @punctuation.delimeter
(comment) @comment

; once we have diff injections, @comment should become @none
((comment (scissors))
(message)+ @comment)

0 comments on commit 78f9323

Please sign in to comment.