Skip to content

Commit d0535a4

Browse files
committed
build: update bindings (again)
1 parent 346fa42 commit d0535a4

26 files changed

+52422
-52564
lines changed

.editorconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ root = true
22

33
[*]
44
charset = utf-8
5-
insert_final_newline = true
6-
trim_trailing_whitespace = true
75

86
[*.{json,toml,yml,gyp}]
97
indent_style = space
@@ -13,11 +11,11 @@ indent_size = 2
1311
indent_style = space
1412
indent_size = 2
1513

16-
[*.rs]
14+
[*.{c,cc,h}]
1715
indent_style = space
1816
indent_size = 4
1917

20-
[*.{c,cc,h}]
18+
[*.rs]
2119
indent_style = space
2220
indent_size = 4
2321

@@ -36,3 +34,6 @@ indent_size = 8
3634
[Makefile]
3735
indent_style = tab
3836
indent_size = 8
37+
38+
[parser.c]
39+
indent_size = 2

.eslintrc.js

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

.gitattributes

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
* text=auto eol=lf
22

3-
examples/crlf-line-endings.py eol=crlf
4-
examples/python2-grammar-crlf.py eol=crlf
5-
examples/python3-grammar-crlf.py eol=crlf
6-
73
src/*.json linguist-generated
84
src/parser.c linguist-generated
95
src/tree_sitter/* linguist-generated

.github/workflows/fuzz.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Fuzz Parser
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- src/scanner.c
8+
pull_request:
9+
paths:
10+
- src/scanner.c
11+
12+
jobs:
13+
fuzz:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Run fuzzer
19+
uses: tree-sitter/fuzz-action@v4
20+
with:
21+
tree-sitter-version: v0.22.2

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- grammar.js
8+
pull_request:
9+
paths:
10+
- grammar.js
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
cache: npm
22+
node-version: ${{vars.NODE_VERSION}}
23+
- name: Install modules
24+
run: npm ci --legacy-peer-deps
25+
- name: Run ESLint
26+
run: npm run lint

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Rust artifacts
2-
Cargo.lock
32
target/
43

54
# Node artifacts
@@ -10,9 +9,9 @@ node_modules/
109

1110
# Swift artifacts
1211
.build/
12+
Package.resolved
1313

1414
# Go artifacts
15-
go.sum
1615
_obj/
1716

1817
# Python artifacts

.npmignore

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

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ path = "bindings/rust/lib.rs"
2323
tree-sitter-language = "0.1.0"
2424

2525
[build-dependencies]
26-
cc = "1.0.89"
26+
cc = "1.1.15"
2727

2828
[dev-dependencies]
29-
tree-sitter = "0.23.0"
29+
tree-sitter = "0.23"

Makefile

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

0 commit comments

Comments
 (0)