Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Add ignore keyword for gomod (#41520)
Bing Wang379bdb227a03
diff --git a/Cargo.lock b/Cargo.lockindex 947d90338af..fd36815d55a 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -18055,7 +18055,7 @@ dependencies = [[[package]]name = "tree-sitter-gomod"version = "1.1.1"-source = "git+https://github.com/camdencheek/tree-sitter-go-mod?rev=6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c#6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c"+source = "git+https://github.com/camdencheek/tree-sitter-go-mod?rev=2e886870578eeba1927a2dc4bd2e2b3f598c5f9a#2e886870578eeba1927a2dc4bd2e2b3f598c5f9a"dependencies = ["cc","tree-sitter-language",diff --git a/Cargo.toml b/Cargo.tomlindex 369082ff167..7674b0bacc1 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -680,7 +680,7 @@ tree-sitter-elixir = "0.3"tree-sitter-embedded-template = "0.23.0"tree-sitter-gitcommit = { git = "https://github.com/zed-industries/tree-sitter-git-commit", rev = "88309716a69dd13ab83443721ba6e0b491d37ee9" }tree-sitter-go = "0.23"-tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c", package = "tree-sitter-gomod" }+tree-sitter-go-mod = { git = "https://github.com/camdencheek/tree-sitter-go-mod", rev = "2e886870578eeba1927a2dc4bd2e2b3f598c5f9a", package = "tree-sitter-gomod" }tree-sitter-gowork = { git = "https://github.com/zed-industries/tree-sitter-go-work", rev = "acb0617bf7f4fda02c6217676cc64acb89536dc7" }tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }tree-sitter-html = "0.23"diff --git a/crates/languages/src/gomod/highlights.scm b/crates/languages/src/gomod/highlights.scmindex bfcb6fcabbd..03be1b59571 100644--- a/crates/languages/src/gomod/highlights.scm+++ b/crates/languages/src/gomod/highlights.scm@@ -7,6 +7,7 @@"exclude""retract""module"+ "ignore"] @keyword"=>" @operatordiff --git a/crates/languages/src/gomod/structure.scm b/crates/languages/src/gomod/structure.scmindex 0df01ea2557..ce1bc9aa3ee 100644--- a/crates/languages/src/gomod/structure.scm+++ b/crates/languages/src/gomod/structure.scm@@ -27,3 +27,9 @@("(") @structure.open(")") @structure.close)++(ignore_directive+ "ignore" @structure.anchor+ ("(") @structure.open+ (")") @structure.close+)