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.

Add missing #elifdef, #elifndef directives to C/C++ highlights (#45672)

Haojian Wuf1e87022a7c8
diff --git a/crates/languages/src/c/highlights.scm b/crates/languages/src/c/highlights.scm
index 2798bc7734f..578ef7aedda 100644
--- a/crates/languages/src/c/highlights.scm
+++ b/crates/languages/src/c/highlights.scm
@@ -29,6 +29,8 @@
[
"#define"
"#elif"
+ "#elifdef"
+ "#elifndef"
"#else"
"#endif"
"#if"
diff --git a/crates/languages/src/cpp/highlights.scm b/crates/languages/src/cpp/highlights.scm
index 44631ca0e0e..42ac231b0ef 100644
--- a/crates/languages/src/cpp/highlights.scm
+++ b/crates/languages/src/cpp/highlights.scm
@@ -168,6 +168,8 @@ type: (primitive_type) @type.builtin
[
"#define"
"#elif"
+ "#elifdef"
+ "#elifndef"
"#else"
"#endif"
"#if"