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 comment injections for gowork and gomod (#40842)

Donnie Adams96a0db24d973
diff --git a/crates/languages/src/gomod/injections.scm b/crates/languages/src/gomod/injections.scm
new file mode 100644
index 00000000000..321c90add37
--- /dev/null
+++ b/crates/languages/src/gomod/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))
diff --git a/crates/languages/src/gowork/injections.scm b/crates/languages/src/gowork/injections.scm
new file mode 100644
index 00000000000..321c90add37
--- /dev/null
+++ b/crates/languages/src/gowork/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))