File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " tree-sitter-c"
33description = " C grammar for the tree-sitter parsing library"
4- version = " 0.20.4 "
4+ version = " 0.20.5 "
55authors = [
" Max Brunsfeld <[email protected] >" ]
66license = " MIT"
77readme = " bindings/rust/README.md"
88keywords = [" incremental" , " parsing" , " c" ]
99categories = [" parsing" , " text-editors" ]
1010repository = " https://github.com/tree-sitter/tree-sitter-c"
11- edition = " 2018 "
11+ edition = " 2021 "
1212autoexamples = false
1313
1414build = " bindings/rust/build.rs"
@@ -21,4 +21,4 @@ path = "bindings/rust/lib.rs"
2121tree-sitter = " 0.20.10"
2222
2323[build-dependencies ]
24- cc = " 1.0"
24+ cc = " ~ 1.0"
Original file line number Diff line number Diff line change 11# tree-sitter-c
22
3- This crate provides a C grammar for the [ tree-sitter] [ ] parsing library. To
3+ This crate provides a C grammar for the [ tree-sitter] [ ] parsing library. To
44use 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
66[ ` tree-sitter ` ] [ tree-sitter crate ] crate to use the parsed result in any useful
77way.)
88
9- ``` toml
9+ ``` toml
1010[dependencies ]
11- tree-sitter = " 0.17 "
12- tree-sitter-c = " 0.16 "
11+ tree-sitter = " 0.20.10 "
12+ tree-sitter-c = " 0.20.5 "
1313```
1414
1515Typically, you will use the [ language] [ language func ] function to add this
1616grammar to a tree-sitter [ Parser] [ ] , and then use the parser to parse some code:
1717
18- ``` rust
18+ ``` rust
1919let code = r # "
2020 int double(int x) {
2121 return x * 2;
@@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
2929If you have any questions, please reach out to us in the [ tree-sitter
3030discussions] page.
3131
32- [ Language ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
3332[ language func ] : https://docs.rs/tree-sitter-c/*/tree_sitter_c/fn.language.html
3433[ Parser ] : https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
3534[ tree-sitter ] : https://tree-sitter.github.io/
Original file line number Diff line number Diff line change 11{
22 "name" : " tree-sitter-c" ,
3- "version" : " 0.20.4 " ,
3+ "version" : " 0.20.5 " ,
44 "description" : " C grammar for node-tree-sitter" ,
55 "main" : " bindings/node" ,
66 "keywords" : [
1414 "author" : " Max Brunsfeld" ,
1515 "license" : " MIT" ,
1616 "dependencies" : {
17- "nan" : " ^2.14 .0"
17+ "nan" : " ^2.17 .0"
1818 },
1919 "devDependencies" : {
20- "eslint" : " ^8.41 .0" ,
20+ "eslint" : " ^8.46 .0" ,
2121 "eslint-config-google" : " ^0.14.0" ,
22- "tree-sitter-cli" : " ^0.20.0 "
22+ "tree-sitter-cli" : " ^0.20.8 "
2323 },
2424 "scripts" : {
2525 "build" : " tree-sitter generate && node-gyp build" ,
You can’t perform that action at this time.
0 commit comments