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: go.mod/go.work fix highlighting no longer working (#7705)

Derrick Laird04fc0dde1a79
diff --git a/crates/zed/src/languages/gomod/config.toml b/crates/zed/src/languages/gomod/config.toml
index 19c7b20e8cc..b4755fae787 100644
--- a/crates/zed/src/languages/gomod/config.toml
+++ b/crates/zed/src/languages/gomod/config.toml
@@ -1,5 +1,5 @@
name = "Go Mod"
-grammar = "go"
+grammar = "gomod"
path_suffixes = ["mod"]
line_comments = ["//"]
autoclose_before = ")"
diff --git a/crates/zed/src/languages/gowork/config.toml b/crates/zed/src/languages/gowork/config.toml
index 79621ecdafb..5a63dee2eee 100644
--- a/crates/zed/src/languages/gowork/config.toml
+++ b/crates/zed/src/languages/gowork/config.toml
@@ -1,5 +1,5 @@
name = "Go Work"
-grammar = "go_work"
+grammar = "gowork"
path_suffixes = ["work"]
line_comments = ["//"]
autoclose_before = ")"