Skip to content

Commit

Permalink
build: update bindings and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Apr 7, 2024
1 parent 3b12920 commit 962e91f
Show file tree
Hide file tree
Showing 37 changed files with 2,384 additions and 288 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
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
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

15 changes: 8 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/src/** linguist-vendored
/examples/* linguist-vendored
* text eol=lf

src/grammar.json linguist-generated
src/node-types.json linguist-generated
src/*.json linguist-generated
src/parser.c linguist-generated
src/tree_sitter/* linguist-generated

src/grammar.json -diff
src/node-types.json -diff
src/parser.c -diff
bindings/** linguist-generated
binding.gyp linguist-generated
setup.py linguist-generated
Makefile linguist-generated
Package.swift linguist-generated
42 changes: 37 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# Rust artifacts
Cargo.lock
node_modules
build
package-lock.json
/target/
.build/
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/*/

# Grammar volatiles
*.wasm
*.obj
*.o
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
name = "tree-sitter-json"
description = "JSON grammar for tree-sitter"
version = "0.20.2"
authors = ["Max Brunsfeld <[email protected]>"]
version = "0.21.0"
authors = [
"Max Brunsfeld <[email protected]>",
"Amaan Qureshi <[email protected]>",
]
license = "MIT"
readme = "bindings/rust/README.md"
keywords = ["incremental", "parsing", "json"]
keywords = ["incremental", "parsing", "tree-sitter", "json"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-json"
edition = "2021"
Expand All @@ -18,7 +20,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
path = "bindings/rust/lib.rs"

[dependencies]
tree-sitter = ">= 0.20"
tree-sitter = ">=0.21.0"

[build-dependencies]
cc = "~1.0.83"
cc = "1.0.91"
140 changes: 68 additions & 72 deletions Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 20 additions & 10 deletions Package.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 962e91f

Please sign in to comment.