-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3b82b7
commit 6eff76e
Showing
37 changed files
with
1,376 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
* text eol=lf | ||
|
||
src/** linguist-generated | ||
src/*.json linguist-generated | ||
src/parser.c linguist-generated | ||
src/tree_sitter/* linguist-generated | ||
|
||
bindings/** linguist-generated | ||
binding.gyp linguist-generated | ||
setup.py linguist-generated | ||
Makefile linguist-generated | ||
Package.swift linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,31 +22,20 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
test-parser: | ||
name: Test the parser | ||
test: | ||
name: Test parser | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-14] | ||
steps: | ||
- name: Set up repository | ||
uses: tree-sitter/[email protected] | ||
with: | ||
node-version: ${{vars.NODE_VERSION}} | ||
- name: Run tests | ||
uses: tree-sitter/[email protected] | ||
test-package: | ||
name: Test the Python package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Set up tree-sitter | ||
uses: tree-sitter/setup-action/cli@v1 | ||
- name: Run parser and binding tests | ||
uses: tree-sitter/parser-test-action@v2 | ||
with: | ||
python-version: ${{vars.PYTHON_VERSION}} | ||
- name: Install dependencies | ||
run: pip install . | ||
- name: Run tests | ||
run: test/test_package.py | ||
test-python: true | ||
test-rust: ${{runner.os == 'Linux'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
.venv/ | ||
*.egg-info/ | ||
node_modules/ | ||
yarn.lock | ||
# Rust artifacts | ||
Cargo.lock | ||
target/ | ||
|
||
dist/ | ||
# Node artifacts | ||
build/ | ||
target/ | ||
*.wasm | ||
*.dll | ||
prebuilds/ | ||
node_modules/ | ||
*.tgz | ||
|
||
# Swift artifacts | ||
.build/ | ||
|
||
# Go artifacts | ||
go.sum | ||
_obj/ | ||
|
||
# Python artifacts | ||
.venv/ | ||
dist/ | ||
*.egg-info | ||
*.whl | ||
|
||
# C artifacts | ||
*.a | ||
*.so | ||
*.so.* | ||
*.dylib | ||
*.dll | ||
*.pc | ||
|
||
# Example dirs | ||
/examples/*/ | ||
|
||
# Grammar volatiles | ||
*.wasm | ||
*.obj | ||
*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
[package] | ||
name = "tree-sitter-pymanifest" | ||
description = "pymanifest grammar for the tree-sitter parsing library" | ||
version = "0.4.0" | ||
keywords = ["incremental", "parsing", "pymanifest"] | ||
description = "PyPA manifest grammar for tree-sitter" | ||
version = "0.5.0" | ||
license = "MIT" | ||
readme = "README.md" | ||
authors = ["ObserverOfTime <[email protected]>"] | ||
keywords = ["incremental", "parsing", "tree-sitter", "pymanifest"] | ||
categories = ["parsing", "text-editors"] | ||
repository = "https://github.com/tree-sitter-grammars/tree-sitter-pymanifest" | ||
edition = "2021" | ||
license = "MIT" | ||
autoexamples = false | ||
|
||
build = "bindings/rust/build.rs" | ||
include = [ | ||
"bindings/rust/*", | ||
"grammar.js", | ||
"src/parser.c", | ||
"src/grammar.json", | ||
"src/node-types.json", | ||
"src/tree_sitter/*", | ||
"src/tree_sitter_pymanifest/queries/*", | ||
] | ||
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] | ||
|
||
[lib] | ||
path = "bindings/rust/lib.rs" | ||
|
||
[dependencies] | ||
tree-sitter = "~0.20.10" | ||
tree-sitter = ">=0.22.6" | ||
|
||
[build-dependencies] | ||
cc = "^1.0" | ||
cc = "1.0.87" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.