aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2021-12-22 15:01:50 +0000
committerBlaž Hrastnik2021-12-25 15:12:49 +0000
commit78f93239b5814d1b1be7d1fbd2fce1a7aec12432 (patch)
treecb8f81f8d95f7ee3b53b1693ea07a0b8cb43524e
parentfd31662b70ee32d199950ba2873680fc9043c975 (diff)
add gitcommit highlights
-rw-r--r--runtime/queries/gitcommit/highlights.scm18
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)