Skip to content

Commit

Permalink
languages: go.mod/go.work fix highlighting no longer working (#7705)
Browse files Browse the repository at this point in the history
At some point go.mod and go.work syntax highlighting quit working. Looks
like the grammars weren't matching for some reason and I'm not sure how
they were working originally.

Not sure if we could write a test to make sure the tree-sitter queries
are being loaded for the grammars or not but seems like something that
could be useful to avoid something like this in the future.
  • Loading branch information
MordFustang21 authored Feb 13, 2024
1 parent b800fe9 commit 04fc0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/zed/src/languages/gomod/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "Go Mod"
grammar = "go"
grammar = "gomod"
path_suffixes = ["mod"]
line_comments = ["//"]
autoclose_before = ")"
Expand Down
2 changes: 1 addition & 1 deletion crates/zed/src/languages/gowork/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "Go Work"
grammar = "go_work"
grammar = "gowork"
path_suffixes = ["work"]
line_comments = ["//"]
autoclose_before = ")"
Expand Down

0 comments on commit 04fc0dd

Please sign in to comment.