Skip to content

Commit

Permalink
build: update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Apr 7, 2024
1 parent 04a59ee commit 1aafaff
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 77 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "tree-sitter-c"
description = "C grammar for tree-sitter"
version = "0.21.0"
version = "0.21.1"
authors = [
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
"Amaan Qureshi <amaanq12@gmail.com",
"Amaan Qureshi <amaanq12@gmail.com>",
]
license = "MIT"
keywords = ["incremental", "parsing", "tree-sitter", "c"]
Expand All @@ -23,4 +23,4 @@ path = "bindings/rust/lib.rs"
tree-sitter = ">=0.21.0"

[build-dependencies]
cc = "^1.0.89"
cc = "1.0.90"
3 changes: 2 additions & 1 deletion Makefile

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

3 changes: 1 addition & 2 deletions Package.swift

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

2 changes: 2 additions & 0 deletions bindings/python/tree_sitter_c/__init__.py

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

2 changes: 1 addition & 1 deletion bindings/rust/build.rs

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

14 changes: 6 additions & 8 deletions bindings/rust/lib.rs

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

4 changes: 2 additions & 2 deletions bindings/swift/TreeSitterC/c.h

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

6 changes: 2 additions & 4 deletions grammar.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/**
* @file C grammar for tree-sitter
* @author Max Brunsfeld
* @author Max Brunsfeld <maxbrunsfeld@gmail.com>
* @author Amaan Qureshi <amaanq12@gmail.com>
* @license MIT
*/

/* eslint-disable arrow-parens */
/* eslint-disable camelcase */
/* eslint-disable-next-line spaced-comment */
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check

Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

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

60 changes: 52 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-c",
"version": "0.21.0",
"version": "0.21.1",
"description": "C grammar for tree-sitter",
"repository": "github:tree-sitter/tree-sitter-c",
"license": "MIT",
Expand All @@ -25,7 +25,7 @@
"src/**"
],
"dependencies": {
"node-addon-api": "^7.1.0",
"node-addon-api": "^8.0.0",
"node-gyp-build": "^4.8.0"
},
"peerDependencies": {
Expand All @@ -37,17 +37,19 @@
}
},
"devDependencies": {
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-cli": "^0.21.0",
"tree-sitter-cli": "^0.22.2",
"prebuildify": "^6.0.0"
},
"scripts": {
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip",
"build": "tree-sitter generate --no-bindings",
"build-wasm": "tree-sitter build --wasm",
"lint": "eslint grammar.js",
"test": "tree-sitter test",
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip"
"parse": "tree-sitter parse",
"test": "tree-sitter test"
},
"tree-sitter": [
{
Expand All @@ -60,5 +62,47 @@
"highlights": "queries/highlights.scm",
"tags": "queries/tags.scm"
}
]
],
"eslintConfig": {
"env": {
"commonjs": true,
"es2021": true
},
"extends": "google",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"arrow-parens": "off",
"camel-case": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-len": [
"error",
{
"code": 160,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true
}
],
"spaced-comment": [
"warn",
"always",
{
"line": {
"markers": [
"/"
]
}
}
]
}
}
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "tree-sitter-c"
description = "C grammar for tree-sitter"
version = "0.21.0"
version = "0.21.1"
keywords = ["incremental", "parsing", "tree-sitter", "c"]
classifiers = [
"Intended Audience :: Developers",
Expand Down

0 comments on commit 1aafaff

Please sign in to comment.