diff options
author | Michael Davis | 2021-12-22 15:01:50 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-25 15:12:49 +0000 |
commit | 78f93239b5814d1b1be7d1fbd2fce1a7aec12432 (patch) | |
tree | cb8f81f8d95f7ee3b53b1693ea07a0b8cb43524e /runtime/queries | |
parent | fd31662b70ee32d199950ba2873680fc9043c975 (diff) |
add gitcommit highlights
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/gitcommit/highlights.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/gitcommit/highlights.scm b/runtime/queries/gitcommit/highlights.scm new file mode 100644 index 00000000..04d70416 --- /dev/null +++ b/runtime/queries/gitcommit/highlights.scm @@ -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) |