diff --git a/Cargo.lock b/Cargo.lock index 947d90338afea01f0096585c2b1fb74ac907bbf1..fd36815d55a948eec5a9bf8bbc2619ab72446c95 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.toml index 369082ff16736f9f682ad8c5bd09634c03434609..7674b0bacc12e9f9ae78a3f299dc0f538e26bd35 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.scm index bfcb6fcabbda446fc4849427ce499b4f4d7102c9..03be1b5957160820033d93b35b39d4329b7890a6 100644 --- a/crates/languages/src/gomod/highlights.scm +++ b/crates/languages/src/gomod/highlights.scm @@ -7,6 +7,7 @@ "exclude" "retract" "module" + "ignore" ] @keyword "=>" @operator diff --git a/crates/languages/src/gomod/structure.scm b/crates/languages/src/gomod/structure.scm index 0df01ea2557c8bac518c8ebcd865500b67e9fb19..ce1bc9aa3ee0b1f77086103bad91825b5927005f 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 +)