Skip to content

Commit

Permalink
0.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Aug 9, 2023
1 parent 16e4445 commit 93ef178
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "tree-sitter-c"
description = "C grammar for the tree-sitter parsing library"
version = "0.20.4"
version = "0.20.5"
authors = ["Max Brunsfeld <maxbrunsfeld@gmail.com>"]
license = "MIT"
readme = "bindings/rust/README.md"
keywords = ["incremental", "parsing", "c"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-c"
edition = "2018"
edition = "2021"
autoexamples = false

build = "bindings/rust/build.rs"
Expand All @@ -21,4 +21,4 @@ path = "bindings/rust/lib.rs"
tree-sitter = "0.20.10"

[build-dependencies]
cc = "1.0"
cc = "~1.0"
13 changes: 6 additions & 7 deletions bindings/rust/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# tree-sitter-c

This crate provides a C grammar for the [tree-sitter][] parsing library. To
This crate provides a C grammar for the [tree-sitter][] parsing library. To
use this crate, add it to the `[dependencies]` section of your `Cargo.toml`
file. (Note that you will probably also need to depend on the
file. (Note that you will probably also need to depend on the
[`tree-sitter`][tree-sitter crate] crate to use the parsed result in any useful
way.)

``` toml
```toml
[dependencies]
tree-sitter = "0.17"
tree-sitter-c = "0.16"
tree-sitter = "0.20.10"
tree-sitter-c = "0.20.5"
```

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

``` rust
```rust
let code = r#"
int double(int x) {
return x * 2;
Expand All @@ -29,7 +29,6 @@ let parsed = parser.parse(code, None);
If you have any questions, please reach out to us in the [tree-sitter
discussions] page.

[Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
[language func]: https://docs.rs/tree-sitter-c/*/tree_sitter_c/fn.language.html
[Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
[tree-sitter]: https://tree-sitter.github.io/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-c",
"version": "0.20.4",
"version": "0.20.5",
"description": "C grammar for node-tree-sitter",
"main": "bindings/node",
"keywords": [
Expand All @@ -14,12 +14,12 @@
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.14.0"
"nan": "^2.17.0"
},
"devDependencies": {
"eslint": "^8.41.0",
"eslint": "^8.46.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-cli": "^0.20.0"
"tree-sitter-cli": "^0.20.8"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
Expand Down

0 comments on commit 93ef178

Please sign in to comment.