diff --git a/README.md b/README.md index 26072c2..52b7765 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ java = "v0.21.0" json = "0.21.0" # The leading v is not necessary python = "master" typescript = { ref = "0.21.0", cmd = "make" } +toml = { ref = "v0.7.0", from = "https://github.com/tree-sitter-grammars/tree-sitter-toml" } +rbs = { ref = "v0.2.2", from = "https://github.com/joker1007/tree-sitter-rbs" } cobol = { ref = "6a469068cacb5e3955bb16ad8dfff0dd792883c9", from = "https://github.com/yutaro-sakamoto/tree-sitter-cobol" } ``` diff --git a/src/lib.rs b/src/lib.rs index 4664182..0e472bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,8 @@ //! json = "0.21.0" # The leading v is not necessary //! python = "master" //! typescript = { ref = "0.21.0", cmd = "make" } +//! toml = { ref = "v0.7.0", from = "https://github.com/tree-sitter-grammars/tree-sitter-toml" } +//! rbs = { ref = "v0.2.2", from = "https://github.com/joker1007/tree-sitter-rbs" } //! cobol = { ref = "6a469068cacb5e3955bb16ad8dfff0dd792883c9", from = "https://github.com/yutaro-sakamoto/tree-sitter-cobol" } //! ``` //! diff --git a/tests/cmd/build.rs b/tests/cmd/build.rs index aada81f..beaff6f 100644 --- a/tests/cmd/build.rs +++ b/tests/cmd/build.rs @@ -182,6 +182,8 @@ fn no_config_should_build_valid_parser_from_head(#[case] languages: Vec<&str>) { #[rstest] #[case::pinned_hash_and_from_cobol("cobol", "6a46906")] +#[case::pinned_from_toml("toml", "v0.7.0")] +#[case::pinned_from_rbs("rbs", "v0.2.2")] #[case::pinned_leading_v_java("java", "v0.21.0")] #[case::pinned_master_python("python", "master")] #[case::pinned_no_leading_v_json("json", "v0.21.0")] @@ -195,6 +197,8 @@ fn build_explicit_pinned_and_unpinned(#[case] language: &str, #[case] version: & json = "0.21.0" python = "master" typescript = { ref = "0.21.0", cmd = "make" } + toml = { ref = "v0.7.0", from = "https://github.com/tree-sitter-grammars/tree-sitter-toml" } + rbs = { ref = "v0.2.2", from = "https://github.com/joker1007/tree-sitter-rbs" } cobol = { ref = "6a469068cacb5e3955bb16ad8dfff0dd792883c9", from = "https://github.com/yutaro-sakamoto/tree-sitter-cobol" } "# }; @@ -226,6 +230,8 @@ fn build_implicit_pinned_and_unpinned() { ("java", "v0.21.0"), ("python", "master"), ("json", "v0.21.0"), + ("rbs", "v0.2.2"), + ("toml", "v0.7.0"), ("typescript", "v0.21.0"), ]; let config = indoc! { @@ -235,6 +241,8 @@ fn build_implicit_pinned_and_unpinned() { json = "0.21.0" python = "master" typescript = { ref = "0.21.0", cmd = "make" } + toml = { ref = "v0.7.0", from = "https://github.com/tree-sitter-grammars/tree-sitter-toml" } + rbs = { ref = "v0.2.2", from = "https://github.com/joker1007/tree-sitter-rbs" } cobol = { ref = "6a469068cacb5e3955bb16ad8dfff0dd792883c9", from = "https://github.com/yutaro-sakamoto/tree-sitter-cobol" } "# };