Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix diff highlights (#38384)

Vinh Trane033829ef27a
diff --git a/crates/languages/src/diff/highlights.scm b/crates/languages/src/diff/highlights.scm
index 70ec01aa116..4a344389032 100644
--- a/crates/languages/src/diff/highlights.scm
+++ b/crates/languages/src/diff/highlights.scm
@@ -3,12 +3,14 @@
[
(addition)
(new_file)
-] @diff.plus
+] @string
+;; TODO: This should eventually be `@diff.plus` with a fallback of `@string`
[
(deletion)
(old_file)
-] @diff.minus
+] @keyword
+;; TODO: This should eventually be `@diff.minus` with a fallback of `@keyword`
(commit) @constant
@@ -18,8 +20,6 @@
"diff" @function
(argument) @variable.parameter)
-(filename) @string.special.path
-
(mode) @number
([