Skip to content

Commit dc564d2

Browse files
ObserverOfTimeamaanq
authored andcommitted
build: update bindings
1 parent e0c1678 commit dc564d2

32 files changed

+3411
-160
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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/src/** linguist-vendored
2-
/examples/* linguist-vendored
1+
* text eol=lf
2+
test/corpus/c/crlf.txt text eol=crlf
33

4-
src/grammar.json linguist-generated
5-
src/node-types.json linguist-generated
4+
examples/* linguist-vendored
5+
6+
src/*.json linguist-generated
67
src/parser.c linguist-generated
8+
src/tree_sitter/* linguist-generated
79

8-
src/grammar.json -diff
9-
src/node-types.json -diff
10-
src/parser.c -diff
10+
bindings/** linguist-generated
11+
binding.gyp linguist-generated
12+
setup.py linguist-generated
13+
Makefile linguist-generated
14+
Package.swift linguist-generated

.gitignore

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
1+
# Rust artifacts
12
Cargo.lock
2-
node_modules
3-
build
4-
package-lock.json
5-
/target/
6-
.build/
3+
target/
4+
5+
# Node artifacts
6+
build/
7+
prebuilds/
8+
node_modules/
9+
10+
# Swift artifacts
11+
.build/
12+
Package.resolved
13+
14+
# Python artifacts
15+
dist/
16+
*.egg-info
17+
*.whl
18+
19+
# C artifacts
20+
*.a
21+
*.so
22+
*.so.*
23+
*.dylib
24+
*.dll
25+
*.pc
26+
27+
# Examples
28+
/examples/*/
29+
30+
# Grammar volatiles
31+
*.wasm
32+
*.obj
33+
*.o

.npmignore

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

Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[package]
22
name = "tree-sitter-cpp"
33
description = "C++ grammar for tree-sitter"
4-
version = "0.20.5"
5-
authors = ["Max Brunsfeld <[email protected]>"]
4+
version = "0.21.0"
5+
authors = [
6+
"Max Brunsfeld <[email protected]>",
7+
"Amaan Qureshi <[email protected]>",
8+
]
69
license = "MIT"
7-
readme = "bindings/rust/README.md"
8-
keywords = ["incremental", "parsing", "cpp"]
10+
keywords = ["incremental", "parsing", "tree-sitter", "cpp"]
911
categories = ["parsing", "text-editors"]
1012
repository = "https://github.com/tree-sitter/tree-sitter-cpp"
1113
edition = "2021"
@@ -18,7 +20,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
1820
path = "bindings/rust/lib.rs"
1921

2022
[dependencies]
21-
tree-sitter = "~0.20.10"
23+
tree-sitter = ">=0.21.0"
2224

2325
[build-dependencies]
24-
cc = "~1.0"
26+
cc = "^1.0.90"

Makefile

Lines changed: 111 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 20 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
66
[![crates][crates]](https://crates.io/crates/tree-sitter-cpp)
77
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-cpp)
8+
[![pypi][pypi]](https://pypi.org/project/tree-sitter-cpp)
89

910
C++ grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
1011

@@ -18,3 +19,4 @@ C++ grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
1819
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
1920
[npm]: https://img.shields.io/npm/v/tree-sitter-cpp?logo=npm
2021
[crates]: https://img.shields.io/crates/v/tree-sitter-cpp?logo=rust
22+
[pypi]: https://img.shields.io/pypi/v/tree-sitter-cpp?logo=pypi&logoColor=ffd242

binding.gyp

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/c/tree-sitter-cpp.h

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/c/tree-sitter-cpp.pc.in

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/go/binding.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/go/binding_test.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)