Skip to content

Commit

Permalink
feat!: update to tree-sitter 0.23 (#160)
Browse files Browse the repository at this point in the history
Rust users will need to enable the `parser` feature if they require the `MarkdownParser`.
  • Loading branch information
hendrikvanantwerpen authored Sep 9, 2024
1 parent 7fe453b commit 16ba111
Show file tree
Hide file tree
Showing 18 changed files with 11,078 additions and 10,654 deletions.
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tree-sitter-md"
description = "Markdown grammar for tree-sitter"
version = "0.2.3"
version = "0.3.0"
license = "MIT"
readme = "README.md"
keywords = ["incremental", "parsing", "tree-sitter", "markdown"]
Expand All @@ -24,18 +24,26 @@ include = [
"common/html_entities.json",
]

[features]
parser = ["tree-sitter"]

[lib]
path = "bindings/rust/lib.rs"

[dependencies]
tree-sitter = ">=0.21.0"
tree-sitter-language = "0.1.0"
tree-sitter = { version = "0.23", optional = true }

[dev-dependencies]
tree-sitter = "0.23.0"

[build-dependencies]
cc = "^1.0.89"

[[bin]]
name = "benchmark"
path = "bindings/rust/benchmark.rs"
required-features = ["parser"]

[profile.release]
debug = true
4 changes: 2 additions & 2 deletions bindings/go/binding_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions bindings/go/go.mod

This file was deleted.

14 changes: 14 additions & 0 deletions bindings/node/binding_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions bindings/python/tests/test_binding.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions bindings/python/tree_sitter_markdown/binding.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions bindings/rust/build.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 16ba111

Please sign in to comment.