Skip to content

Commit 93ef178

Browse files
committed
0.20.5
1 parent 16e4445 commit 93ef178

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "tree-sitter-c"
33
description = "C grammar for the tree-sitter parsing library"
4-
version = "0.20.4"
4+
version = "0.20.5"
55
authors = ["Max Brunsfeld <[email protected]>"]
66
license = "MIT"
77
readme = "bindings/rust/README.md"
88
keywords = ["incremental", "parsing", "c"]
99
categories = ["parsing", "text-editors"]
1010
repository = "https://github.com/tree-sitter/tree-sitter-c"
11-
edition = "2018"
11+
edition = "2021"
1212
autoexamples = false
1313

1414
build = "bindings/rust/build.rs"
@@ -21,4 +21,4 @@ path = "bindings/rust/lib.rs"
2121
tree-sitter = "0.20.10"
2222

2323
[build-dependencies]
24-
cc = "1.0"
24+
cc = "~1.0"

bindings/rust/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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
44
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
66
[`tree-sitter`][tree-sitter crate] crate to use the parsed result in any useful
77
way.)
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

1515
Typically, you will use the [language][language func] function to add this
1616
grammar to a tree-sitter [Parser][], and then use the parser to parse some code:
1717

18-
``` rust
18+
```rust
1919
let code = r#"
2020
int double(int x) {
2121
return x * 2;
@@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
2929
If you have any questions, please reach out to us in the [tree-sitter
3030
discussions] 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/

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": [
@@ -14,12 +14,12 @@
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",

0 commit comments

Comments
 (0)