-
Notifications
You must be signed in to change notification settings - Fork 55
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
Showing
38 changed files
with
425,416 additions
and
424,939 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,2 +1,11 @@ | ||
/src/** linguist-vendored | ||
/examples/* linguist-vendored | ||
* text=auto eol=lf | ||
|
||
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
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,25 +1,21 @@ | ||
name: Fuzz parser | ||
name: Fuzz Parser | ||
|
||
# Run this workflow on changes to the external scanner | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [master] | ||
paths: | ||
- src/scanner.c | ||
- src/stack.h | ||
- src/scanner.c | ||
pull_request: | ||
paths: | ||
- src/scanner.c | ||
- src/stack.h | ||
- src/scanner.c | ||
|
||
jobs: | ||
test: | ||
name: Parser fuzzing | ||
fuzz: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: vigoux/tree-sitter-fuzz-action@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Run fuzzer | ||
uses: tree-sitter/fuzz-action@v4 | ||
with: | ||
language: scala | ||
external-scanner: src/scanner.c | ||
time: 60 | ||
tree-sitter-version: v0.22.2 |
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,15 +1,37 @@ | ||
node_modules | ||
build | ||
/.build | ||
target | ||
*.log | ||
test.scala | ||
Cargo.lock | ||
.scalafmt.conf | ||
*worksheet.sc | ||
*.out | ||
.direnv | ||
.metals | ||
report-* | ||
./scala | ||
./dotty | ||
# Rust artifacts | ||
target/ | ||
|
||
# Node artifacts | ||
build/ | ||
prebuilds/ | ||
node_modules/ | ||
*.tgz | ||
|
||
# Swift artifacts | ||
.build/ | ||
Package.resolved | ||
|
||
# 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 |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
[package] | ||
name = "tree-sitter-scala" | ||
description = "scala grammar for the tree-sitter parsing library" | ||
description = "Scala grammar for tree-sitter" | ||
version = "0.22.1" | ||
keywords = ["incremental", "parsing", "scala"] | ||
license = "MIT" | ||
keywords = ["incremental", "parsing", "tree-sitter", "scala"] | ||
categories = ["parsing", "text-editors"] | ||
repository = "https://github.com/tree-sitter/tree-sitter-scala" | ||
edition = "2021" | ||
license = "MIT" | ||
autoexamples = false | ||
|
||
build = "bindings/rust/build.rs" | ||
include = [ | ||
"bindings/rust/*", | ||
"grammar.js", | ||
"queries/*", | ||
"src/*", | ||
] | ||
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"] | ||
|
||
[lib] | ||
path = "bindings/rust/lib.rs" | ||
|
||
[dependencies] | ||
tree-sitter = "0.22.6" | ||
tree-sitter-language = "0.1.0" | ||
|
||
[build-dependencies] | ||
cc = "1.0" | ||
cc = "1.1.15" | ||
|
||
[dev-dependencies] | ||
tree-sitter = "0.23" |
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.