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.

languages: Capture escape sequences in C and C++ (#46116)

ozacodc7c0f560b89f
diff --git a/crates/languages/src/c/highlights.scm b/crates/languages/src/c/highlights.scm
index 46c970e69d9..2798bc7734f 100644
--- a/crates/languages/src/c/highlights.scm
+++ b/crates/languages/src/c/highlights.scm
@@ -98,6 +98,8 @@
(char_literal)
] @string
+(escape_sequence) @string.escape
+
(comment) @comment
(number_literal) @number
diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scm
index af906e67122..44631ca0e0e 100644
--- a/crates/languages/src/cpp/highlights.scm
+++ b/crates/languages/src/cpp/highlights.scm
@@ -198,6 +198,8 @@ type: (primitive_type) @type.builtin
(raw_string_literal)
] @string
+(escape_sequence) @string.escape
+
[
","
":"