diff --git a/crates/languages/src/diff/highlights.scm b/crates/languages/src/diff/highlights.scm index d8e600882c2307..70ec01aa1165b6 100644 --- a/crates/languages/src/diff/highlights.scm +++ b/crates/languages/src/diff/highlights.scm @@ -1,3 +1,5 @@ +(comment) @comment + [ (addition) (new_file) @@ -12,4 +14,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)