Skip to content

Commit f7210f0

Browse files
committed
Bump tree-sitter-mozjs to 0.20.2
1 parent 8f38eed commit f7210f0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tree-sitter-rust = "=0.21.2"
3434
tree-sitter-preproc = { path = "./tree-sitter-preproc", version = "=0.20.2" }
3535
tree-sitter-ccomment = { path = "./tree-sitter-ccomment", version = "=0.20.2" }
3636
tree-sitter-mozcpp = { path = "./tree-sitter-mozcpp", version = "=0.20.3" }
37-
tree-sitter-mozjs = { path = "./tree-sitter-mozjs", version = "=0.20.1" }
37+
tree-sitter-mozjs = { path = "./tree-sitter-mozjs", version = "=0.20.2" }
3838

3939
[dev-dependencies]
4040
insta = { version = "1.29.0", features = ["yaml", "json", "redactions"] }

enums/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tree-sitter-rust = "=0.21.2"
1818
tree-sitter-preproc = { path = "../tree-sitter-preproc", version = "=0.20.2" }
1919
tree-sitter-ccomment = { path = "../tree-sitter-ccomment", version = "=0.20.2" }
2020
tree-sitter-mozcpp = { path = "../tree-sitter-mozcpp", version = "=0.20.3" }
21-
tree-sitter-mozjs = { path = "../tree-sitter-mozjs", version = "=0.20.1" }
21+
tree-sitter-mozjs = { path = "../tree-sitter-mozjs", version = "=0.20.2" }
2222

2323
[profile.release]
2424
strip = "debuginfo"

tree-sitter-mozjs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-mozjs"
33
description = "Mozjs grammar for the tree-sitter parsing library"
4-
version = "0.20.1"
4+
version = "0.20.2"
55
authors = ["Calixte Denizet <cdenizet@mozilla.com>"]
66
license = "MIT"
77
readme = "bindings/rust/README.md"
@@ -21,13 +21,13 @@ include = [
2121
path = "bindings/rust/lib.rs"
2222

2323
[dependencies]
24-
tree-sitter = "=0.20.10"
24+
tree-sitter = "=0.22.6"
2525

2626
[build-dependencies]
2727
cc = "^1.0"
2828
# This dependency is not used at all for this crate, but it is here so that
2929
# dependabot can send notifications when there are updates for this grammar
30-
tree-sitter-javascript = "0.20.0"
30+
tree-sitter-javascript = "0.21.2"
3131

3232
[package.metadata.cargo-udeps.ignore]
3333
build = ["tree-sitter-javascript"]

tree-sitter-mozjs/bindings/rust/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! }
2020
//! "#;
2121
//! let mut parser = Parser::new();
22-
//! parser.set_language(tree_sitter_mozjs::language()).expect("Error loading Mozjs grammar");
22+
//! parser.set_language(&tree_sitter_mozjs::language()).expect("Error loading Mozjs grammar");
2323
//! let parsed = parser.parse(code, None);
2424
//! # let parsed = parsed.unwrap();
2525
//! # let root = parsed.root_node();
@@ -58,7 +58,7 @@ mod tests {
5858
fn can_load_grammar() {
5959
let mut parser = tree_sitter::Parser::new();
6060
parser
61-
.set_language(super::language())
61+
.set_language(&super::language())
6262
.expect("Error loading Mozjs grammar");
6363
}
6464
}

0 commit comments

Comments
 (0)