Skip to content

Commit 60d0376

Browse files
committed
build: update bindings and versions
1 parent d6791cf commit 60d0376

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2604
-724
lines changed

.editorconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{json,toml,yml,gyp}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.js]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.rs]
18+
indent_style = space
19+
indent_size = 4
20+
21+
[*.{c,cc,h}]
22+
indent_style = space
23+
indent_size = 4
24+
25+
[*.{py,pyi}]
26+
indent_style = space
27+
indent_size = 4
28+
29+
[*.swift]
30+
indent_style = space
31+
indent_size = 4
32+
33+
[*.go]
34+
indent_style = tab
35+
indent_size = 8
36+
37+
[Makefile]
38+
indent_style = tab
39+
indent_size = 8

.gitattributes

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
/src/** linguist-vendored
2-
/examples/* linguist-vendored
1+
* text eol=lf
2+
3+
src/*.json linguist-generated
4+
src/parser.c linguist-generated
5+
src/tree_sitter/* linguist-generated
6+
7+
bindings/** linguist-generated
8+
binding.gyp linguist-generated
9+
setup.py linguist-generated
10+
Makefile linguist-generated
11+
Package.swift linguist-generated

.gitignore

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
1+
# Rust artifacts
12
Cargo.lock
2-
node_modules
3-
build
4-
*.log
5-
package-lock.json
6-
script/javaparser-test/target
7-
test.java
8-
/examples/elasticsearch
9-
/examples/guava
10-
/examples/RxJava
11-
/target/
3+
target/
4+
5+
# Node artifacts
6+
build/
7+
prebuilds/
8+
node_modules/
9+
*.tgz
10+
11+
# Swift artifacts
12+
.build/
13+
14+
# Go artifacts
15+
go.sum
16+
_obj/
17+
18+
# Python artifacts
19+
.venv/
20+
dist/
21+
*.egg-info
22+
*.whl
23+
24+
# C artifacts
1225
*.a
13-
*.dylib
1426
*.so
27+
*.so.*
28+
*.dylib
29+
*.dll
30+
*.pc
31+
32+
# Example dirs
33+
/examples/*/
34+
35+
# Grammar volatiles
36+
*.wasm
37+
*.obj
1538
*.o
16-
bindings/c/*.h
17-
bindings/c/tree-sitter-*.pc
18-
.build/

.npmignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

Cargo.toml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
[package]
22
name = "tree-sitter-java"
3-
description = "Java grammar for the tree-sitter parsing library"
4-
version = "0.20.2"
3+
description = "Java grammar for tree-sitter"
4+
version = "0.21.0"
55
authors = [
6-
"Douglas Creager <[email protected]>",
7-
"Ayman Nadeem <[email protected]>",
6+
"Ayman Nadeem <[email protected]>",
7+
"Max Brunsfeld <[email protected]>",
8+
"Amaan Qureshi <[email protected]>",
89
]
910
license = "MIT"
10-
readme = "bindings/rust/README.md"
11-
keywords = ["incremental", "parsing", "java"]
11+
keywords = ["incremental", "parsing", "tree-sitter", "java"]
1212
categories = ["parsing", "text-editors"]
1313
repository = "https://github.com/tree-sitter/tree-sitter-java"
14-
edition = "2018"
14+
edition = "2021"
15+
autoexamples = false
1516

1617
build = "bindings/rust/build.rs"
17-
include = [
18-
"bindings/rust/*",
19-
"grammar.js",
20-
"queries/*",
21-
"src/*",
22-
]
18+
include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
2319

2420
[lib]
2521
path = "bindings/rust/lib.rs"
2622

2723
[dependencies]
28-
tree-sitter = ">= 0.19, < 0.21"
24+
tree-sitter = ">=0.21.0"
2925

3026
[build-dependencies]
31-
cc = "1.0"
27+
cc = "1.0.91"

0 commit comments

Comments
 (0)