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.

Revert "Add Doxygen injection into C and C++ comments" (#44883)

Piotr Osiewicz6eb198cabf82
diff --git a/crates/languages/src/c/injections.scm b/crates/languages/src/c/injections.scm
index d7df76b1186..447897340cc 100644
--- a/crates/languages/src/c/injections.scm
+++ b/crates/languages/src/c/injections.scm
@@ -1,7 +1,6 @@
((comment) @injection.content
- (#match? @injection.content "^(///|//!|/\\*\\*|/\\*!)(.*)")
- (#set! injection.language "doxygen")
- (#set! injection.include-children))
+ (#set! injection.language "comment")
+)
(preproc_def
value: (preproc_arg) @injection.content
diff --git a/crates/languages/src/cpp/injections.scm b/crates/languages/src/cpp/injections.scm
index a115a3bffdb..160770f3cc1 100644
--- a/crates/languages/src/cpp/injections.scm
+++ b/crates/languages/src/cpp/injections.scm
@@ -1,7 +1,6 @@
((comment) @injection.content
- (#match? @injection.content "^(///|//!|/\\*\\*|/\\*!)(.*)")
- (#set! injection.language "doxygen")
- (#set! injection.include-children))
+ (#set! injection.language "comment")
+)
(preproc_def
value: (preproc_arg) @injection.content