mirror of
https://github.com/github/codeql.git
synced 2026-02-12 21:21:16 +01:00
Updates the Python extractor to depend on version 0.24.7 of tree-sitter (and 0.12.0 of tree-sitter-graph). A few changes were needed in order to make the code build and run after updating the dependencies: - In `main.rs`, the `Language` parameter is now passed as a reference. - In `python.tsg`, many queries had captures that were not actually used in the body of the stanza. This is no longer allowed (unless the captures start with an underscore), as it may indicate an error. To fix this, I added underscores in the appropriate places (and verified that none of these unused captures were in fact bugs).
33 lines
743 B
TOML
33 lines
743 B
TOML
[package]
|
|
name = "tsp"
|
|
description = "Python grammar for the tree-sitter parsing library"
|
|
version = "0.19.0"
|
|
authors = [
|
|
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
|
"Douglas Creager <dcreager@dcreager.net>",
|
|
]
|
|
license = "MIT"
|
|
readme = "bindings/rust/README.md"
|
|
keywords = ["incremental", "parsing", "python"]
|
|
categories = ["parsing", "text-editors"]
|
|
repository = "https://github.com/tree-sitter/tree-sitter-python"
|
|
edition = "2024"
|
|
|
|
build = "bindings/rust/build.rs"
|
|
include = [
|
|
"bindings/rust/*",
|
|
"grammar.js",
|
|
"queries/*",
|
|
"src/*",
|
|
]
|
|
|
|
[lib]
|
|
path = "bindings/rust/lib.rs"
|
|
|
|
## When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
|
[dependencies]
|
|
tree-sitter = "=0.24.7"
|
|
|
|
[build-dependencies]
|
|
cc = "1.2"
|