Max Brunsfeld
f91255a201
Fix crash w/ goto_previous_sibling when parent node has leading extra child ( #4472 )
...
* Fix crash w/ goto_previous_sibling when parent node has leading extra
child Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
* Fix lint
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
---------
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2025-05-27 16:56:33 -07:00
Haoxiang Fei
06537fda83
fix: wasi has endian.h
2025-05-24 12:27:13 +02:00
dependabot[bot]
299f8a9fb9
build(deps): bump cc from 1.2.22 to 1.2.23 in the cargo group
...
Bumps the cargo group with 1 update: [cc](https://github.com/rust-lang/cc-rs ).
Updates `cc` from 1.2.22 to 1.2.23
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.22...cc-v1.2.23 )
---
updated-dependencies:
- dependency-name: cc
dependency-version: 1.2.23
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-20 08:07:08 +02:00
Mike Zeller
4339b0fe05
illumos has endian.h
2025-05-15 09:53:45 +02:00
dependabot[bot]
08bb6f44a4
build(deps): bump the cargo group with 6 updates
...
Bumps the cargo group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.21` | `1.2.22` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.37` | `4.5.38` |
| [clap_complete](https://github.com/clap-rs/clap ) | `4.5.48` | `4.5.50` |
| [ctrlc](https://github.com/Detegr/rust-ctrlc ) | `3.4.6` | `3.4.7` |
| [libloading](https://github.com/nagisa/rust_libloading ) | `0.8.6` | `0.8.7` |
| [tempfile](https://github.com/Stebalien/tempfile ) | `3.19.1` | `3.20.0` |
Updates `cc` from 1.2.21 to 1.2.22
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.21...cc-v1.2.22 )
Updates `clap` from 4.5.37 to 4.5.38
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.37...clap_complete-v4.5.38 )
Updates `clap_complete` from 4.5.48 to 4.5.50
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.48...clap_complete-v4.5.50 )
Updates `ctrlc` from 3.4.6 to 3.4.7
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.4.6...3.4.7 )
Updates `libloading` from 0.8.6 to 0.8.7
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.8.6...0.8.7 )
Updates `tempfile` from 3.19.1 to 3.20.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.19.1...v3.20.0 )
---
updated-dependencies:
- dependency-name: cc
dependency-version: 1.2.22
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap
dependency-version: 4.5.38
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap_complete
dependency-version: 4.5.50
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: ctrlc
dependency-version: 3.4.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: libloading
dependency-version: 0.8.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: tempfile
dependency-version: 3.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 08:12:35 +02:00
Will Lillis
31b9717ca3
fix(lib): return early for empty predicate step slice
2025-05-11 08:57:30 -04:00
dependabot[bot]
52a792384f
build(deps): bump the cargo group with 2 updates
...
Bumps the cargo group with 2 updates: [cc](https://github.com/rust-lang/cc-rs ) and [git2](https://github.com/rust-lang/git2-rs ).
Updates `cc` from 1.2.20 to 1.2.21
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.20...cc-v1.2.21 )
Updates `git2` from 0.20.1 to 0.20.2
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2 )
---
updated-dependencies:
- dependency-name: cc
dependency-version: 1.2.21
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: git2
dependency-version: 0.20.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-06 08:57:38 +00:00
Will Lillis
b1d2b7cfb8
fix(query): correct last_child_step_index in cases where a new step
...
wasn't created.
This fixes an OOB access to `self.steps` when a last child anchor
immediately follows a predicate.
2025-05-03 17:27:37 -04:00
Will Lillis
cc634236b1
fix(rust): address new clippy lint
2025-05-03 19:57:11 +02:00
Will Lillis
91274f47e4
fix(rust): ignore obfuscated_if_else lint
2025-05-03 19:57:11 +02:00
dependabot[bot]
bfc5d1180c
build(deps): bump vite from 6.3.2 to 6.3.4 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.3.2 to 6.3.4.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.3.4/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 6.3.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-01 09:18:47 +02:00
Amaan Qureshi
21c658a12c
fix(lib): do not access the alias sequence for the end subtree in ts_subtree_summarize_children
2025-04-28 23:13:13 -04:00
dependabot[bot]
e057299b0d
build(deps): bump the cargo group with 3 updates
...
Bumps the cargo group with 3 updates: [cc](https://github.com/rust-lang/cc-rs ), [clap_complete](https://github.com/clap-rs/clap ) and [toml](https://github.com/toml-rs/toml ).
Updates `cc` from 1.2.19 to 1.2.20
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.19...cc-v1.2.20 )
Updates `clap_complete` from 4.5.47 to 4.5.48
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.47...clap_complete-v4.5.48 )
Updates `toml` from 0.8.20 to 0.8.22
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.20...toml-v0.8.22 )
---
updated-dependencies:
- dependency-name: cc
dependency-version: 1.2.20
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap_complete
dependency-version: 4.5.48
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: toml
dependency-version: 0.8.22
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 19:43:22 -04:00
Amaan Qureshi
3056dc5be4
fix(generate): mark url as a Windows-only dependency
2025-04-28 18:31:09 -04:00
Amaan Qureshi
0191e94226
docs(rust): remove adding cc as a build dependency for consumers
2025-04-28 18:30:45 -04:00
Will Lillis
dcdd5bc372
fix(parse): explicitly move temporaries in the logger callback
...
This fixes problems where these stack-local temporaries are used after their scope ends.
2025-04-28 03:30:05 -04:00
Will Lillis
d0e0e0322c
fix(xtask): properly trim emscripten version at the source ( #4402 )
...
* fix(xtask): properly trim emscripten version at the source
* fix(loader): trim emscripten version in `cargo:rustc-env=` print
2025-04-27 20:59:04 -07:00
Max Brunsfeld
ca7ff033db
Fix wasm build issues introduced by switching to wasi-sdk ( #4407 )
...
* Don't shell out for extracting tar.gz files
* Avoid wasi-sdk adding dependency on libc.so
* Clippy
* Fix -nostdlib flag
2025-04-27 19:42:34 -07:00
Max Brunsfeld
d4d8ed32b3
cli: Compile parsers to wasm using wasi-sdk, not emscripten ( #4393 )
...
* Build wasm modules using wasi-sdk, not emscripten
* Log a warning if --docker is passed
2025-04-24 16:00:09 -07:00
Max Brunsfeld
635c49909c
Add zed config file (enable all cargo features for rust-analyzer)
2025-04-23 16:32:21 -07:00
Tamchuk
70cf2a7a22
docs: fix typo
2025-04-23 08:26:51 -04:00
dependabot[bot]
74e6641afc
build(deps): bump the cargo group with 2 updates
...
Bumps the cargo group with 2 updates: [clap](https://github.com/clap-rs/clap ) and [ureq](https://github.com/algesten/ureq ).
Updates `clap` from 4.5.36 to 4.5.37
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.36...clap_complete-v4.5.37 )
Updates `ureq` from 3.0.10 to 3.0.11
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md )
- [Commits](https://github.com/algesten/ureq/compare/3.0.10...3.0.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-version: 4.5.37
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: ureq
dependency-version: 3.0.11
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 10:13:43 +02:00
Will Lillis
c7475e4bf3
perf(highlight): use BTreeMap over IndexMap for highlight configs
2025-04-20 05:55:37 -04:00
WillLillis
eee41925aa
fix(ci): increase timeouts for flaky tests
2025-04-19 10:59:09 +02:00
Amaan Qureshi
69d553c82a
style(cli): formatting
2025-04-19 01:15:53 -04:00
dependabot[bot]
043e0c65ec
build(deps): bump vite from 6.1.0 to 6.2.6 in /lib/binding_web
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.1.0 to 6.2.6.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.6/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v6.2.6/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 6.2.6
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 23:57:56 -04:00
vemoo
4dffb818e2
feat(web): export wasm files to better support bundling use cases
2025-04-18 23:47:27 -04:00
Daniel Jalkut
4514751803
docs(cli): improve documentation for the edits argument when parsing code
2025-04-18 23:45:52 -04:00
Tamir Bahar
27fa1088b9
fix(web): replace dynamic require with import
2025-04-18 23:40:40 -04:00
MichiRecRoom
853ca46899
docs(rust): improve bindings' crate doc
2025-04-18 22:55:59 -04:00
Riley Bruins
21390af2dd
fix(web): correct childWithDescendant() functionality
...
This fix allows for more granular address control when marshalling nodes
across WASM. This is necessary for node methods which accept another
node as a parameter (i.e., `childWithDescendant()`)
2025-04-18 18:11:42 -04:00
Will Lillis
45a281c962
fix(ci): trigger build_wasm workflow when xtask is modified
2025-04-16 18:06:48 -04:00
Will Lillis
c7c1614278
fix(xtask): trim EMSCRIPTEN_TAG arg to docker command in build-wasm
...
command
2025-04-16 18:06:48 -04:00
dependabot[bot]
c085a772cf
build(deps): bump the cargo group with 4 updates
...
Bumps the cargo group with 4 updates: [anyhow](https://github.com/dtolnay/anyhow ), [bstr](https://github.com/BurntSushi/bstr ), [cc](https://github.com/rust-lang/cc-rs ) and [clap](https://github.com/clap-rs/clap ).
Updates `anyhow` from 1.0.97 to 1.0.98
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.97...1.0.98 )
Updates `bstr` from 1.11.3 to 1.12.0
- [Commits](https://github.com/BurntSushi/bstr/compare/1.11.3...1.12.0 )
Updates `cc` from 1.2.18 to 1.2.19
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.18...cc-v1.2.19 )
Updates `clap` from 4.5.35 to 4.5.36
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.35...clap_complete-v4.5.36 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-version: 1.0.98
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: bstr
dependency-version: 1.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
- dependency-name: cc
dependency-version: 1.2.19
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap
dependency-version: 4.5.36
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 11:38:47 +02:00
Will Lillis
9fdf685dd5
fix(bindings): report wasm store error in rust bindings set_language
2025-04-14 22:15:40 -04:00
Riley Bruins
733d7513af
fix(lib): reset parser options after use
...
**Problem:** After `ts_parser_parse_with_options()`, the parser options
are still stored in the parser object, meaning that a successive call to
`ts_parser_parse()` will actually behave like
`ts_parser_parse_with_options()`, which is not obvious and can have
unintended consequences.
**Solution:** Reset to empty options state after
`ts_parser_parse_with_options()`.
2025-04-14 21:35:40 -04:00
Paul Gey
b341073192
Make highlighting more deterministic when themes are ambiguous
2025-04-10 23:04:00 -04:00
Jon Shea
92c5d3b8e2
fix(rust): clarify error message for non-token reserved words
...
Improve the `NonTokenReservedWord` error message by including the
specific reserved word that was not used as a token.
2025-04-09 18:15:48 -04:00
Jason Boatman
abc5c6bc50
Fix WASI build by not calling a non-existent function. ( #4343 )
2025-04-08 09:33:48 -07:00
Edgar Onghena
52d2865365
chore(generate): add @generated to parser.c header ( #4338 )
...
This makes `parser.c` follow the https://generated.at/ convention for generated files. This potentially allows any compatible IDE to discourage editing it directly.
2025-04-08 10:52:37 +02:00
dependabot[bot]
89b04babfb
ci: bump actions/create-github-app-token in the actions group
...
Bumps the actions group with 1 update: [actions/create-github-app-token](https://github.com/actions/create-github-app-token ).
Updates `actions/create-github-app-token` from 1 to 2
- [Release notes](https://github.com/actions/create-github-app-token/releases )
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: actions/create-github-app-token
dependency-version: '2'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 10:18:03 +02:00
dependabot[bot]
755f77231c
build(deps): bump the cargo group across 1 directory with 5 updates
...
Bumps the cargo group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.17` | `1.2.18` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.32` | `4.5.35` |
| [ctrlc](https://github.com/Detegr/rust-ctrlc ) | `3.4.5` | `3.4.6` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.8.0` | `2.9.0` |
| [once_cell](https://github.com/matklad/once_cell ) | `1.21.1` | `1.21.3` |
Updates `cc` from 1.2.17 to 1.2.18
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.17...cc-v1.2.18 )
Updates `clap` from 4.5.32 to 4.5.35
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.32...clap_complete-v4.5.35 )
Updates `ctrlc` from 3.4.5 to 3.4.6
- [Release notes](https://github.com/Detegr/rust-ctrlc/releases )
- [Commits](https://github.com/Detegr/rust-ctrlc/compare/3.4.5...3.4.6 )
Updates `indexmap` from 2.8.0 to 2.9.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.8.0...2.9.0 )
Updates `once_cell` from 1.21.1 to 1.21.3
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.21.1...v1.21.3 )
---
updated-dependencies:
- dependency-name: cc
dependency-version: 1.2.18
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap
dependency-version: 4.5.35
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: ctrlc
dependency-version: 3.4.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: indexmap
dependency-version: 2.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
- dependency-name: once_cell
dependency-version: 1.21.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 10:17:45 +02:00
Bernardo Sulzbach
3d4d13ea1e
Fix typo of "corresponds"
2025-04-07 18:34:12 -04:00
Peter Hill
4ec8aacaec
docs: Fix link to named-vs-anonymous-nodes section
2025-04-06 10:58:42 -04:00
Will Lillis
0f949168ef
fix(cli): display "N/A" in parse stats where appropriate when no parsing
...
took place
2025-04-06 09:45:50 -04:00
Will Lillis
71941d8bda
fix(highlight): account for multiple rows in highlight testing assertions
2025-04-06 09:45:50 -04:00
WillLillis
521da2b0a7
fix(rust): address new nightly lint for pointer comparisons
2025-03-26 08:58:50 +01:00
Christian Clason
37a9ecd5b7
build(deps): update emscripten to v4.0.5
2025-03-25 15:18:44 +01:00
Simon Willshire
ee8d529552
fix(rust): use core crates for no_std
...
also add `no_std` build to CI
2025-03-25 14:30:32 +01:00
WillLillis
dac6300558
fix(rust): address new clippy lint for pointer comparisons
2025-03-25 13:44:42 +01:00