Skip to content

Commit

Permalink
0.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Aug 15, 2023
1 parent f754611 commit 8a096f2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tree-sitter-python"
description = "Python grammar for the tree-sitter parsing library"
version = "0.20.3"
description = "Python grammar for tree-sitter"
version = "0.20.4"
authors = [
"Max Brunsfeld <[email protected]>",
"Douglas Creager <[email protected]>",
Expand All @@ -11,7 +11,8 @@ readme = "bindings/rust/README.md"
keywords = ["incremental", "parsing", "python"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-python"
edition = "2018"
edition = "2021"
autoexamples = false

build = "bindings/rust/build.rs"
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
Expand All @@ -20,7 +21,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
path = "bindings/rust/lib.rs"

[dependencies]
tree-sitter = ">= 0.19, < 0.21"
tree-sitter = "~0.20.10"

[build-dependencies]
cc = "1.0"
cc = "~1.0"
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"src"
],
"sources": [
"src/parser.c",
"bindings/node/binding.cc",
"src/parser.c",
"src/scanner.c"
],
"cflags_c": [
Expand Down
5 changes: 2 additions & 3 deletions bindings/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ way.)

```toml
[dependencies]
tree-sitter = "0.17"
tree-sitter-python = "0.17"
tree-sitter = "0.20.10"
tree-sitter-python = "0.20.4"
```

Typically, you will use the [language][language func] function to add this
Expand All @@ -28,7 +28,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-python/*/tree_sitter_python/fn.language.html
[Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
[tree-sitter]: https://tree-sitter.github.io/
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-python",
"version": "0.20.3",
"version": "0.20.4",
"description": "Python grammar for tree-sitter",
"main": "bindings/node",
"keywords": [
Expand All @@ -10,12 +10,12 @@
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.15.0"
"nan": "^2.17.0"
},
"devDependencies": {
"eslint": "^8.45.0",
"eslint": "^8.47.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-cli": "^0.20.1"
"tree-sitter-cli": "^0.20.8"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
Expand All @@ -30,6 +30,13 @@
"scope": "source.python",
"file-types": [
"py"
],
"injection-regex": "py",
"highlights": [
"queries/highlights.scm"
],
"tags": [
"queries/tags.scm"
]
}
]
Expand Down

0 comments on commit 8a096f2

Please sign in to comment.