mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 11:57:43 +03:00
add gitcommit highlights
This commit is contained in:
parent
fd31662b70
commit
78f93239b5
1 changed files with 18 additions and 0 deletions
18
runtime/queries/gitcommit/highlights.scm
Normal file
18
runtime/queries/gitcommit/highlights.scm
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue