summaryrefslogtreecommitdiff
path: root/queries/diff
diff options
context:
space:
mode:
authorgbprod <contact@gb-prod.fr>2022-10-18 13:15:07 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-10-19 16:22:58 -0700
commit1e4b23c26678bd36e3da638183996eaa30e7fba8 (patch)
tree2c71583e213c61e84f33abfb4a941c3644de561a /queries/diff
parentb9bcbf8d73b5a6c3e04922936b5fc500b436d4f5 (diff)
feat(diff): add diff parser
This commit introduce diff parser.
Diffstat (limited to 'queries/diff')
-rw-r--r--queries/diff/highlights.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/diff/highlights.scm b/queries/diff/highlights.scm
new file mode 100644
index 00000000..4b9cbad6
--- /dev/null
+++ b/queries/diff/highlights.scm
@@ -0,0 +1,6 @@
+[(addition) (new_file)] @text.diff.add
+[(deletion) (old_file)] @text.diff.delete
+
+(commit) @constant
+(location) @attribute
+(command) @function