From 3aa2e2f3747ee11dc4460ad98b25e887c33bb610 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sun, 12 May 2024 11:21:42 -0700 Subject: feat(diff): more comprehensive highlights --- queries/diff/highlights.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'queries/diff') 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) -- cgit v1.2.3-70-g09d2