Skip to content

Commit ab2790b

Browse files
committed
deps src: Automatic update
1 parent c1966a4 commit ab2790b

File tree

292 files changed

+31710
-14030
lines changed

Some content is hidden

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

292 files changed

+31710
-14030
lines changed

src/treesitter-stamp/download-treesitter.cmake

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ function(check_file_hash has_hash hash_is_good)
2222
set("${has_hash}" TRUE PARENT_SCOPE)
2323

2424
message(VERBOSE "verifying file...
25-
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz'")
25+
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz'")
2626

27-
file("SHA256" "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz" actual_value)
27+
file("SHA256" "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz" actual_value)
2828

29-
if(NOT "${actual_value}" STREQUAL "7cbc13c974d6abe978cafc9da12d1e79e07e365c42af75e43ec1b5cdc03ed447")
29+
if(NOT "${actual_value}" STREQUAL "cbdea399736b55d61cfb581bc8d80620d487f4ec8f8d60b7fe00406e39a98d6d")
3030
set("${hash_is_good}" FALSE PARENT_SCOPE)
3131
message(VERBOSE "SHA256 hash of
32-
/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz
32+
/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz
3333
does not match expected value
34-
expected: '7cbc13c974d6abe978cafc9da12d1e79e07e365c42af75e43ec1b5cdc03ed447'
34+
expected: 'cbdea399736b55d61cfb581bc8d80620d487f4ec8f8d60b7fe00406e39a98d6d'
3535
actual: '${actual_value}'")
3636
else()
3737
set("${hash_is_good}" TRUE PARENT_SCOPE)
@@ -71,32 +71,32 @@ function(sleep_before_download attempt)
7171
execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
7272
endfunction()
7373

74-
if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz")
74+
if(EXISTS "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz")
7575
check_file_hash(has_hash hash_is_good)
7676
if(has_hash)
7777
if(hash_is_good)
7878
message(VERBOSE "File already exists and hash match (skip download):
79-
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz'
80-
SHA256='7cbc13c974d6abe978cafc9da12d1e79e07e365c42af75e43ec1b5cdc03ed447'"
79+
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz'
80+
SHA256='cbdea399736b55d61cfb581bc8d80620d487f4ec8f8d60b7fe00406e39a98d6d'"
8181
)
8282
return()
8383
else()
8484
message(VERBOSE "File already exists but hash mismatch. Removing...")
85-
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz")
85+
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz")
8686
endif()
8787
else()
8888
message(VERBOSE "File already exists but no hash specified (use URL_HASH):
89-
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz'
89+
file='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz'
9090
Old file will be removed and new file downloaded from URL."
9191
)
92-
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz")
92+
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz")
9393
endif()
9494
endif()
9595

9696
set(retry_number 5)
9797

9898
message(VERBOSE "Downloading...
99-
dst='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz'
99+
dst='/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz'
100100
timeout='none'
101101
inactivity timeout='none'"
102102
)
@@ -107,7 +107,7 @@ foreach(i RANGE ${retry_number})
107107
if(status_code IN_LIST download_retry_codes)
108108
sleep_before_download(${i})
109109
endif()
110-
foreach(url IN ITEMS [====[https://github.com/tree-sitter/tree-sitter/archive/v0.24.7.tar.gz]====])
110+
foreach(url IN ITEMS [====[https://github.com/tree-sitter/tree-sitter/archive/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz]====])
111111
if(NOT url IN_LIST skip_url_list)
112112
message(VERBOSE "Using src='${url}'")
113113

@@ -119,7 +119,7 @@ foreach(i RANGE ${retry_number})
119119

120120
file(
121121
DOWNLOAD
122-
"${url}" "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz"
122+
"${url}" "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz"
123123

124124
# no TIMEOUT
125125
# no INACTIVITY_TIMEOUT
@@ -136,7 +136,7 @@ foreach(i RANGE ${retry_number})
136136
check_file_hash(has_hash hash_is_good)
137137
if(has_hash AND NOT hash_is_good)
138138
message(VERBOSE "Hash mismatch, removing...")
139-
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz")
139+
file(REMOVE "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz")
140140
else()
141141
message(VERBOSE "Downloading... done")
142142
return()

src/treesitter-stamp/extract-treesitter.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION ${CMAKE_VERSION}) # this file comes with cmake
55

66
# Make file names absolute:
77
#
8-
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/v0.24.7.tar.gz" ABSOLUTE)
8+
get_filename_component(filename "/home/runner/work/deps/deps/neovim/deps/build/downloads/treesitter/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz" ABSOLUTE)
99
get_filename_component(directory "/home/runner/work/deps/deps/neovim/deps/build/src/treesitter" ABSOLUTE)
1010

1111
message(VERBOSE "extracting...

src/treesitter-stamp/treesitter-urlinfo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ method=url
66
command=/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/treesitter-stamp/download-treesitter.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/treesitter-stamp/verify-treesitter.cmake;COMMAND;/usr/local/bin/cmake;-DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE;-P;/home/runner/work/deps/deps/neovim/deps/build/src/treesitter-stamp/extract-treesitter.cmake
77
source_dir=/home/runner/work/deps/deps/neovim/deps/build/src/treesitter
88
work_dir=/home/runner/work/deps/deps/neovim/deps/build/src
9-
url(s)=https://github.com/tree-sitter/tree-sitter/archive/v0.24.7.tar.gz
10-
hash=SHA256=7cbc13c974d6abe978cafc9da12d1e79e07e365c42af75e43ec1b5cdc03ed447
9+
url(s)=https://github.com/tree-sitter/tree-sitter/archive/9515be4fc16d3dfe6fba5ae4a7a058f32bcf535d.tar.gz
10+
hash=SHA256=cbdea399736b55d61cfb581bc8d80620d487f4ec8f8d60b7fe00406e39a98d6d
1111
no_extract=
1212

src/treesitter/.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: tree-sitter
4+
patreon: # Replace with a single Patreon username
5+
open_collective: tree-sitter # Replace with a single Open Collective username
6+
ko_fi: amaanq
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

src/treesitter/.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ body:
1313
attributes:
1414
label: "Steps to reproduce"
1515
placeholder: |
16+
```sh
1617
git clone --depth=1 https://github.com/tree-sitter/tree-sitter-ruby
1718
cd tree-sitter-ruby
1819
tree-sitter generate
20+
```
1921
validations:
2022
required: true
2123

src/treesitter/.github/actions/cache/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ runs:
1818
target/release/tree-sitter-*.wasm
1919
key: fixtures-${{ join(matrix.*, '_') }}-${{ hashFiles(
2020
'cli/generate/src/**',
21+
'lib/src/parser.h',
22+
'lib/src/array.h',
23+
'lib/src/alloc.h',
2124
'xtask/src/*',
2225
'test/fixtures/grammars/*/**/src/*.c',
2326
'.github/actions/cache/action.yml') }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ body = """
1616
{% for commit in commits%}\
1717
{% if not commit.scope %}\
1818
- {{ commit.message | upper_first }}\
19-
{% if commit.github.pr_number %} (<https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.github.pr_number }}>){%- endif %}
19+
{% if commit.remote.pr_number %} (<https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.remote.pr_number }}>){%- endif %}
2020
{% endif %}\
2121
{% endfor %}\
2222
{% for group, commits in commits | group_by(attribute="scope") %}\
2323
{% for commit in commits %}\
2424
- **{{commit.scope}}**: {{ commit.message | upper_first }}\
25-
{% if commit.github.pr_number %} (<https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.github.pr_number }}>){%- endif %}
25+
{% if commit.remote.pr_number %} (<https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.remote.pr_number }}>){%- endif %}
2626
{% endfor %}\
2727
{% endfor %}
2828
{% endfor %}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Bindgen Output
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- lib/include/tree_sitter/api.h
7+
- lib/binding_rust/bindings.rs
8+
push:
9+
branches: [master]
10+
paths:
11+
- lib/include/tree_sitter/api.h
12+
- lib/binding_rust/bindings.rs
13+
14+
jobs:
15+
check-bindgen:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up stable Rust toolchain
22+
uses: actions-rust-lang/setup-rust-toolchain@v1
23+
with:
24+
toolchain: stable
25+
26+
- name: Generate bindings
27+
run: cargo xtask generate-bindings
28+
29+
- name: Check if the bindgen output changed
30+
run: git diff --exit-code lib/binding_rust/bindings.rs

src/treesitter/.github/workflows/build.yml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ jobs:
3636
# When adding a new `target`:
3737
# 1. Define a new platform alias above
3838
# 2. Add a new record to the matrix map in `cli/npm/install.js`
39-
- { platform: linux-arm64 , target: aarch64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
40-
- { platform: linux-arm , target: arm-unknown-linux-gnueabi , os: ubuntu-latest , use-cross: true }
41-
- { platform: linux-x64 , target: x86_64-unknown-linux-gnu , os: ubuntu-20.04 , features: wasm } # See #2272
42-
- { platform: linux-x86 , target: i686-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
43-
- { platform: linux-powerpc64 , target: powerpc64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
44-
- { platform: windows-arm64 , target: aarch64-pc-windows-msvc , os: windows-latest }
45-
- { platform: windows-x64 , target: x86_64-pc-windows-msvc , os: windows-latest , features: wasm }
46-
- { platform: windows-x86 , target: i686-pc-windows-msvc , os: windows-latest }
47-
- { platform: macos-arm64 , target: aarch64-apple-darwin , os: macos-14 , features: wasm }
48-
- { platform: macos-x64 , target: x86_64-apple-darwin , os: macos-13 , features: wasm }
39+
- { platform: linux-arm64 , target: aarch64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
40+
- { platform: linux-arm , target: arm-unknown-linux-gnueabi , os: ubuntu-latest , use-cross: true }
41+
- { platform: linux-x64 , target: x86_64-unknown-linux-gnu , os: ubuntu-latest , features: wasm }
42+
- { platform: linux-x86 , target: i686-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
43+
- { platform: linux-powerpc64 , target: powerpc64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
44+
- { platform: windows-arm64 , target: aarch64-pc-windows-msvc , os: windows-latest }
45+
- { platform: windows-x64 , target: x86_64-pc-windows-msvc , os: windows-latest , features: wasm }
46+
- { platform: windows-x86 , target: i686-pc-windows-msvc , os: windows-latest }
47+
- { platform: macos-arm64 , target: aarch64-apple-darwin , os: macos-latest , features: wasm }
48+
- { platform: macos-x64 , target: x86_64-apple-darwin , os: macos-13 , features: wasm }
4949

5050
# Cross compilers for C library
5151
- { platform: linux-arm64 , cc: aarch64-linux-gnu-gcc , ar: aarch64-linux-gnu-ar }
@@ -88,7 +88,11 @@ jobs:
8888

8989
- name: Install cross
9090
if: ${{ matrix.use-cross }}
91-
run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
91+
run: |
92+
if [ ! -x "$(command -v cross)" ]; then
93+
# TODO: Remove 'RUSTFLAGS=""' once https://github.com/cross-rs/cross/issues/1561 is resolved
94+
RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
95+
fi
9296
9397
- name: Configure cross
9498
if: ${{ matrix.use-cross }}
@@ -152,7 +156,6 @@ jobs:
152156
printf 'CMAKE_PREFIX_PATH=%s\n' "$PWD/artifacts" >> $GITHUB_ENV
153157
env:
154158
WASMTIME_REPO: https://github.com/bytecodealliance/wasmtime
155-
RUSTFLAGS: ""
156159

157160
- name: Build C library (make)
158161
if: ${{ runner.os != 'Windows' }}
@@ -183,7 +186,14 @@ jobs:
183186
- name: Build wasm library
184187
# No reason to build on the same Github runner hosts many times
185188
if: ${{ !matrix.no-run && !matrix.use-cross }}
186-
run: $BUILD_CMD run -p xtask -- build-wasm
189+
shell: bash
190+
run: |
191+
cd lib/binding_web
192+
npm ci
193+
CJS=true npm run build
194+
CJS=true npm run build:debug
195+
npm run build
196+
npm run build:debug
187197
188198
- name: Build target
189199
run: $BUILD_CMD build --release --target=${{ matrix.target }} --features=${{ matrix.features }}
@@ -233,6 +243,16 @@ jobs:
233243
name: tree-sitter.wasm
234244
path: |
235245
lib/binding_web/tree-sitter.js
246+
lib/binding_web/tree-sitter.js.map
247+
lib/binding_web/tree-sitter.cjs
248+
lib/binding_web/tree-sitter.cjs.map
236249
lib/binding_web/tree-sitter.wasm
250+
lib/binding_web/tree-sitter.wasm.map
251+
lib/binding_web/debug/tree-sitter.cjs
252+
lib/binding_web/debug/tree-sitter.cjs.map
253+
lib/binding_web/debug/tree-sitter.js
254+
lib/binding_web/debug/tree-sitter.js.map
255+
lib/binding_web/debug/tree-sitter.wasm
256+
lib/binding_web/debug/tree-sitter.wasm.map
237257
if-no-files-found: error
238258
retention-days: 7

src/treesitter/.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@ name: CI
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- docs/**
7+
- "**/README.md"
8+
- CONTRIBUTING.md
9+
- LICENSE
10+
- cli/src/templates
511
push:
612
branches: [master]
13+
paths-ignore:
14+
- docs/**
15+
- "**/README.md"
16+
- CONTRIBUTING.md
17+
- LICENSE
18+
- cli/src/templates
719

820
concurrency:
921
group: ${{ github.workflow }}-${{ github.ref }}
@@ -28,7 +40,9 @@ jobs:
2840
components: clippy, rustfmt
2941

3042
- name: Lint files
31-
run: make lint
43+
run: |
44+
make lint
45+
make lint-web
3246
3347
sanitize:
3448
uses: ./.github/workflows/sanitize.yml

0 commit comments

Comments
 (0)