-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{json,toml,yml,gyp}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.rs] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{c,cc,h}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{py,pyi}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.swift] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.go] | ||
indent_style = tab | ||
indent_size = 8 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 8 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
typescript/src/** linguist-vendored | ||
tsx/src/** linguist-vendored | ||
* text eol=lf | ||
|
||
/examples/* linguist-vendored | ||
src/*.json linguist-generated | ||
src/parser.c linguist-generated | ||
src/tree_sitter/* linguist-generated | ||
|
||
typescript/src/grammar.json linguist-generated | ||
typescript/src/node-types.json linguist-generated | ||
typescript/src/parser.c linguist-generated | ||
|
||
tsx/src/grammar.json linguist-generated | ||
tsx/src/node-types.json linguist-generated | ||
tsx/src/parser.c linguist-generated | ||
|
||
typescript/src/grammar.json -diff | ||
typescript/src/node-types.json -diff | ||
typescript/src/parser.c -diff | ||
|
||
tsx/src/grammar.json -diff | ||
tsx/src/node-types.json -diff | ||
tsx/src/parser.c -diff | ||
bindings/** linguist-generated | ||
binding.gyp linguist-generated | ||
setup.py linguist-generated | ||
Makefile linguist-generated | ||
Package.swift linguist-generated |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
# Rust artifacts | ||
Cargo.lock | ||
node_modules | ||
.node-version | ||
target | ||
build | ||
/.build | ||
*.log | ||
Cargo.lock | ||
package-lock.json | ||
/test.ts | ||
examples/desktop | ||
examples/redux | ||
examples/vscode | ||
log.html | ||
yarn.lock | ||
target/ | ||
|
||
# Node artifacts | ||
build/ | ||
prebuilds/ | ||
node_modules/ | ||
*.tgz | ||
|
||
# Swift artifacts | ||
.build/ | ||
|
||
# Go artifacts | ||
go.sum | ||
_obj/ | ||
|
||
# Python artifacts | ||
.venv/ | ||
dist/ | ||
*.egg-info | ||
*.whl | ||
|
||
# C artifacts | ||
*.a | ||
*.so | ||
*.so.* | ||
*.dylib | ||
*.dll | ||
*.pc | ||
|
||
# Example dirs | ||
/examples/*/ | ||
|
||
# These files would be generated by 'tree-sitter generate' with the default | ||
# settings. We don't want them because there's already a copy at the root. | ||
/tsx/Cargo.toml | ||
/tsx/binding.gyp | ||
/tsx/bindings | ||
/typescript/Cargo.toml | ||
/typescript/binding.gyp | ||
/typescript/bindings | ||
# Grammar volatiles | ||
*.wasm | ||
*.obj | ||
*.o |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
[package] | ||
name = "tree-sitter-typescript" | ||
description = "Typescript grammar for tree-sitter" | ||
description = "TypeScript and TSX grammars for tree-sitter" | ||
version = "0.20.6" | ||
authors = ["Max Brunsfeld <[email protected]>"] | ||
authors = [ | ||
"Max Brunsfeld <[email protected]>", | ||
"Amaan Qureshi <[email protected]>", | ||
] | ||
license = "MIT" | ||
readme = "bindings/rust/README.md" | ||
keywords = ["incremental", "parsing", "typescript", "tsx"] | ||
keywords = ["incremental", "parsing", "tree-sitter", "typescript", "tsx"] | ||
categories = ["parsing", "text-editors"] | ||
repository = "https://github.com/tree-sitter/tree-sitter-typescript" | ||
edition = "2021" | ||
autoexamples = false | ||
|
||
build = "bindings/rust/build.rs" | ||
include = [ | ||
"common", | ||
"bindings/rust", | ||
"typescript/grammar.js", | ||
"typescript/src", | ||
"tsx/grammar.js", | ||
"tsx/src", | ||
"queries", | ||
"common", | ||
"bindings/rust", | ||
"typescript/grammar.js", | ||
"typescript/src", | ||
"tsx/grammar.js", | ||
"tsx/src", | ||
"queries", | ||
] | ||
|
||
[lib] | ||
path = "bindings/rust/lib.rs" | ||
|
||
[dependencies] | ||
tree-sitter = "~0.20.10" | ||
tree-sitter = ">=0.21.0" | ||
|
||
[build-dependencies] | ||
cc = "~1.0.90" | ||
cc = "1.0.96" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.