-
-
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
8f58696
commit 18a1d18
Showing
45 changed files
with
3,381 additions
and
1,826 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,6 +1,37 @@ | ||
* text eol=lf | ||
* text=auto eol=lf | ||
|
||
src/** linguist-generated | ||
bindings/** linguist-generated | ||
binding.gyp linguist-generated | ||
# Generated source files | ||
src/*.json linguist-generated | ||
src/parser.c linguist-generated | ||
src/tree_sitter/* linguist-generated | ||
|
||
# C bindings | ||
bindings/c/* linguist-generated | ||
CMakeLists.txt linguist-generated | ||
Makefile linguist-generated | ||
|
||
# Rust bindings | ||
bindings/rust/* linguist-generated | ||
Cargo.toml linguist-generated | ||
Cargo.lock linguist-generated | ||
|
||
# Node.js bindings | ||
bindings/node/* linguist-generated | ||
binding.gyp linguist-generated | ||
package.json linguist-generated | ||
package-lock.json linguist-generated | ||
|
||
# Python bindings | ||
bindings/python/** linguist-generated | ||
setup.py linguist-generated | ||
pyproject.toml linguist-generated | ||
|
||
# Go bindings | ||
bindings/go/* linguist-generated | ||
go.mod linguist-generated | ||
go.sum linguist-generated | ||
|
||
# Swift bindings | ||
bindings/swift/** linguist-generated | ||
Package.swift linguist-generated | ||
Package.resolved 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 |
---|---|---|
|
@@ -24,10 +24,10 @@ jobs: | |
name: Test parser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up repository | ||
uses: tree-sitter/[email protected] | ||
with: | ||
node-version: ${{vars.NODE_VERSION}} | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up tree-sitter | ||
uses: tree-sitter/setup-action/cli@v1 | ||
- name: Clone systemd rules | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -42,9 +42,11 @@ jobs: | |
path: examples/udev-extra-rules | ||
repository: openSUSE/udev-extra-rules | ||
- name: Run tests | ||
uses: tree-sitter/[email protected] | ||
uses: tree-sitter/parser-test-action@v2 | ||
- name: Parse sample files | ||
uses: tree-sitter/parse-action@v4 | ||
with: | ||
corpus-files: |- | ||
files: |- | ||
examples/systemd/rules.d/*.rules | ||
examples/systemd/test/fuzz/fuzz-udev-rules/*.rules | ||
examples/udev-extra-rules/*.rules |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Publish package | ||
|
||
on: | ||
push: | ||
tags: ["*"] | ||
|
||
jobs: | ||
release: | ||
uses: tree-sitter/workflows/.github/workflows/release.yml@main | ||
permissions: | ||
contents: write |
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,8 +1,40 @@ | ||
node_modules/ | ||
yarn.lock | ||
Cargo.lock | ||
# Rust artifacts | ||
target/ | ||
|
||
# Node artifacts | ||
build/ | ||
target/ | ||
prebuilds/ | ||
node_modules/ | ||
|
||
# Swift artifacts | ||
.build/ | ||
|
||
# Go artifacts | ||
_obj/ | ||
|
||
# Python artifacts | ||
.venv/ | ||
dist/ | ||
*.egg-info | ||
*.whl | ||
|
||
# C artifacts | ||
*.a | ||
*.so | ||
*.so.* | ||
*.dylib | ||
*.dll | ||
*.pc | ||
|
||
# Example dirs | ||
/examples/*/ | ||
|
||
# Grammar volatiles | ||
*.wasm | ||
*.obj | ||
*.o | ||
|
||
# Archives | ||
*.tar.gz | ||
*.tgz | ||
*.zip |
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.