File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tree-sitter-rust"
3
3
description = " Rust grammar for tree-sitter"
4
- version = " 0.20.3 "
4
+ version = " 0.20.4 "
5
5
authors = [" Max Brunsfeld <maxbrunsfeld@gmail.com>" ]
6
6
license = " MIT"
7
7
readme = " bindings/rust/README.md"
Original file line number Diff line number Diff line change 1
1
# tree-sitter-rust
2
2
3
- This crate provides a Rust grammar for the [ tree-sitter] [ ] parsing library. To
3
+ This crate provides a Rust grammar for the [ tree-sitter] [ ] parsing library. To
4
4
use this crate, add it to the ` [dependencies] ` section of your ` Cargo.toml `
5
- file. (Note that you will probably also need to depend on the
5
+ file. (Note that you will probably also need to depend on the
6
6
[ ` tree-sitter ` ] [ tree-sitter crate ] crate to use the parsed result in any useful
7
7
way.)
8
8
9
- ``` toml
9
+ ``` toml
10
10
[dependencies ]
11
- tree-sitter = " 0.17 "
12
- tree-sitter-rust = " 0.16 "
11
+ tree-sitter = " 0.20.10 "
12
+ tree-sitter-rust = " 0.20.4 "
13
13
```
14
14
15
15
Typically, you will use the [ language] [ language func ] function to add this
16
16
grammar to a tree-sitter [ Parser] [ ] , and then use the parser to parse some code:
17
17
18
- ``` rust
18
+ ``` rust
19
19
let code = r # "
20
20
fn double(x: i32) -> i32 {
21
21
x * 2
@@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
29
29
If you have any questions, please reach out to us in the [ tree-sitter
30
30
discussions] page.
31
31
32
- [ Language ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
33
32
[ language func ] : https://docs.rs/tree-sitter-rust/*/tree_sitter_rust/fn.language.html
34
33
[ Parser ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
35
34
[ tree-sitter ] : https://tree-sitter.github.io/
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tree-sitter-rust" ,
3
- "version" : " 0.20.3 " ,
3
+ "version" : " 0.20.4 " ,
4
4
"description" : " Rust grammar for tree-sitter" ,
5
5
"main" : " bindings/node" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments