Skip to content

Commit f836f66

Browse files
committed
build: update bindings and manifests
1 parent b00b8eb commit f836f66

Some content is hidden

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

50 files changed

+2206
-307
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

.eslintrc.js

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

.gitattributes

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
typescript/src/** linguist-vendored
2-
tsx/src/** linguist-vendored
1+
* text eol=lf
32

4-
/examples/* linguist-vendored
3+
src/*.json linguist-generated
4+
src/parser.c linguist-generated
5+
src/tree_sitter/* linguist-generated
56

6-
typescript/src/grammar.json linguist-generated
7-
typescript/src/node-types.json linguist-generated
8-
typescript/src/parser.c linguist-generated
9-
10-
tsx/src/grammar.json linguist-generated
11-
tsx/src/node-types.json linguist-generated
12-
tsx/src/parser.c linguist-generated
13-
14-
typescript/src/grammar.json -diff
15-
typescript/src/node-types.json -diff
16-
typescript/src/parser.c -diff
17-
18-
tsx/src/grammar.json -diff
19-
tsx/src/node-types.json -diff
20-
tsx/src/parser.c -diff
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: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
1+
# Rust artifacts
12
Cargo.lock
2-
node_modules
3-
.node-version
4-
target
5-
build
6-
/.build
7-
*.log
8-
Cargo.lock
9-
package-lock.json
10-
/test.ts
11-
examples/desktop
12-
examples/redux
13-
examples/vscode
14-
log.html
15-
yarn.lock
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
25+
*.a
26+
*.so
27+
*.so.*
28+
*.dylib
29+
*.dll
30+
*.pc
31+
32+
# Example dirs
33+
/examples/*/
1634

17-
# These files would be generated by 'tree-sitter generate' with the default
18-
# settings. We don't want them because there's already a copy at the root.
19-
/tsx/Cargo.toml
20-
/tsx/binding.gyp
21-
/tsx/bindings
22-
/typescript/Cargo.toml
23-
/typescript/binding.gyp
24-
/typescript/bindings
35+
# Grammar volatiles
36+
*.wasm
37+
*.obj
38+
*.o

.npmignore

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

Cargo.toml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
[package]
22
name = "tree-sitter-typescript"
3-
description = "Typescript grammar for tree-sitter"
3+
description = "TypeScript and TSX grammars for tree-sitter"
44
version = "0.20.6"
5-
authors = ["Max Brunsfeld <[email protected]>"]
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", "typescript", "tsx"]
10+
keywords = ["incremental", "parsing", "tree-sitter", "typescript", "tsx"]
911
categories = ["parsing", "text-editors"]
1012
repository = "https://github.com/tree-sitter/tree-sitter-typescript"
1113
edition = "2021"
1214
autoexamples = false
1315

1416
build = "bindings/rust/build.rs"
1517
include = [
16-
"common",
17-
"bindings/rust",
18-
"typescript/grammar.js",
19-
"typescript/src",
20-
"tsx/grammar.js",
21-
"tsx/src",
22-
"queries",
18+
"common",
19+
"bindings/rust",
20+
"typescript/grammar.js",
21+
"typescript/src",
22+
"tsx/grammar.js",
23+
"tsx/src",
24+
"queries",
2325
]
2426

2527
[lib]
2628
path = "bindings/rust/lib.rs"
2729

2830
[dependencies]
29-
tree-sitter = "~0.20.10"
31+
tree-sitter = ">=0.21.0"
3032

3133
[build-dependencies]
32-
cc = "~1.0.90"
34+
cc = "1.0.96"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 GitHub
3+
Copyright (c) 2017 Max Brunsfeld
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

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

README.md

Lines changed: 3 additions & 1 deletion
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-typescript)
77
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-typescript)
8+
[![pypi][pypi]](https://pypi.org/project/tree-sitter-typescript)
89

910
TypeScript and TSX grammars for [tree-sitter][].
1011

@@ -15,7 +16,7 @@ require("tree-sitter-typescript").typescript; // TypeScript grammar
1516
require("tree-sitter-typescript").tsx; // TSX grammar
1617
```
1718

18-
For Javascript files with [flow] type annotations you can use the the `tsx` parser.
19+
For Javascript files with [flow] type annotations you can use the `tsx` parser.
1920

2021
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
2122
[flow]: https://flow.org/en/
@@ -29,3 +30,4 @@ References
2930
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
3031
[npm]: https://img.shields.io/npm/v/tree-sitter-typescript?logo=npm
3132
[crates]: https://img.shields.io/crates/v/tree-sitter-typescript?logo=rust
33+
[pypi]: https://img.shields.io/pypi/v/tree-sitter-typescript?logo=pypi&logoColor=ffd242

appveyor.yml

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

0 commit comments

Comments
 (0)