Skip to content

Commit e0f9dcd

Browse files
authored
Merge pull request #180 from savq/tsg-update
Update ABI, update CI, remove Emojis, make blocks visible
2 parents 73d1539 + 113776f commit e0f9dcd

Some content is hidden

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

42 files changed

+578836
-1138859
lines changed

.gitattributes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ src/parser.c linguist-generated
66
src/tree_sitter/* linguist-generated
77

88
# C bindings
9-
bindings/c/* linguist-generated
9+
bindings/c/** linguist-generated
1010
CMakeLists.txt linguist-generated
1111
Makefile linguist-generated
1212

@@ -35,3 +35,7 @@ go.sum linguist-generated
3535
bindings/swift/** linguist-generated
3636
Package.swift linguist-generated
3737
Package.resolved linguist-generated
38+
39+
# Zig bindings
40+
build.zig linguist-generated
41+
build.zig.zon linguist-generated

.github/workflows/ci.yml

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,9 @@ name: CI
33
on:
44
push:
55
branches: [master]
6-
paths:
7-
- grammar.js
8-
- src/**
9-
- test/**
10-
- bindings/**
11-
- binding.gyp
126
pull_request:
13-
paths:
14-
- grammar.js
15-
- src/**
16-
- test/**
17-
- bindings/**
18-
- binding.gyp
7+
branches: [master]
8+
workflow_dispatch:
199

2010
concurrency:
2111
group: ${{github.workflow}}-${{github.ref}}
@@ -24,21 +14,40 @@ concurrency:
2414
jobs:
2515
test:
2616
name: Test parser
27-
runs-on: ${{ matrix.os }}
17+
runs-on: ${{matrix.os}}
2818
strategy:
2919
fail-fast: false
3020
matrix:
31-
os: [ubuntu-latest, windows-latest, macos-14]
21+
os: [ubuntu-latest, windows-latest, macos-latest]
3222
steps:
33-
- name: Checkout repository
23+
- name: Set up repository
3424
uses: actions/checkout@v4
25+
3526
- name: Set up tree-sitter
36-
uses: tree-sitter/setup-action/cli@v1
27+
uses: tree-sitter/setup-action@v2
28+
with:
29+
install-lib: false
30+
3731
- name: Run tests
3832
uses: tree-sitter/parser-test-action@v2
33+
34+
query:
35+
name: Validate queries
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Set up repository
39+
uses: actions/checkout@v4
40+
41+
- name: Set up tree-sitter
42+
uses: tree-sitter/setup-action@v2
3943
with:
40-
test-rust: true
41-
test-node: true
42-
test-python: true
43-
test-go: true
44-
test-swift: true
44+
install-lib: false
45+
46+
- name: Build parser
47+
run: tree-sitter build
48+
49+
- name: Set up ts_query_ls
50+
run: curl -fL https://github.com/ribru17/ts_query_ls/releases/latest/download/ts_query_ls-x86_64-unknown-linux-gnu.tar.gz | tar -xz
51+
52+
- name: Check queries
53+
run: ./ts_query_ls check -f queries/

.github/workflows/fuzz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
pull_request:
99
paths:
1010
- src/scanner.c
11+
workflow_dispatch:
1112

1213
jobs:
1314
fuzz:

.github/workflows/publish.yml

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

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags: ["*"]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{github.workflow}}-${{github.ref}}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
attestations: write
16+
17+
jobs:
18+
release:
19+
uses: tree-sitter/workflows/.github/workflows/release.yml@main
20+
with:
21+
attestations: true
22+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Rust artifacts
22
target/
3+
Cargo.lock
34

45
# Node artifacts
56
build/
67
prebuilds/
78
node_modules/
9+
package-lock.json
810

911
# Swift artifacts
1012
.build/
13+
Package.resolved
1114

1215
# Go artifacts
1316
_obj/
@@ -25,6 +28,13 @@ dist/
2528
*.dylib
2629
*.dll
2730
*.pc
31+
*.exp
32+
*.lib
33+
34+
# Zig artifacts
35+
.zig-cache/
36+
zig-cache/
37+
zig-out/
2838

2939
# Example dirs
3040
/examples/*/

.tsqueryrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/ribru17/ts_query_ls/refs/heads/master/schemas/config.json",
3+
"parser_install_directories": ["."]
4+
}

CMakeLists.txt

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

Cargo.lock

Lines changed: 5 additions & 5 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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)