aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/diff/highlights.scm33
1 files changed, 32 insertions, 1 deletions
diff --git a/queries/diff/highlights.scm b/queries/diff/highlights.scm
index d8e600882..44506c056 100644
--- a/queries/diff/highlights.scm
+++ b/queries/diff/highlights.scm
@@ -12,4 +12,35 @@
(location) @attribute
-(command) @function
+(command
+ "diff" @function
+ (argument) @variable.parameter)
+
+(filename) @string.special.path
+
+(mode) @number
+
+[
+ ".."
+ "+"
+ "++"
+ "+++"
+ "++++"
+ "-"
+ "--"
+ "---"
+ "----"
+] @punctuation.special
+
+[
+ (binary_change)
+ (similarity)
+ (file_change)
+] @label
+
+(index
+ "index" @keyword)
+
+(similarity
+ (score) @number
+ "%" @number)