Amaan Qureshi
d97db6d635
0.23.2
2024-10-01 12:34:25 -04:00
Amaan Qureshi
78c41e3ced
0.23.1
2024-09-30 18:25:19 -04:00
Yuta Saito
bf094bd98a
fix: exclude APIs that dup given file descriptors from WASI builds
...
WASI doesn't support `dup(2)` system call, so we cannot implement the
`print_dot_graph` and `print_dot_graphs` functions with exactly the same
semantics as in other platforms.
(cherry picked from commit 94a8262110 )
2024-09-30 09:21:54 -04:00
Ron Panduwana
d10308528d
fix: handle more cases of editing subtrees that depend on column values
...
(cherry picked from commit a83b893016 )
2024-09-29 20:37:24 -04:00
Amaan Qureshi
77794c558f
fix: correct test name parsing when the prior test has equal signs
...
(cherry picked from commit 2fffe036e0 )
2024-09-29 19:58:38 -04:00
Amaan Qureshi
865f6595e7
fix(lib): correct descendant-for-range behavior with zero-width tokens
...
(cherry picked from commit 0c43988a5e )
2024-09-27 09:21:17 -04:00
Amaan Qureshi
7561e813b8
fix: disallow empty string literals in rules
...
(cherry picked from commit 86d3a5313d )
2024-09-24 15:41:03 -04:00
Amaan Qureshi
edd7f257df
fix: do not generate spurious files if the grammar path is not the default path
...
(cherry picked from commit 1708a295a8 )
2024-09-24 14:37:30 -04:00
Will Lillis
83509ad4d7
fix(fuzz): skip tests marked with :skip & don't report errors on tests marked with :error
...
(cherry picked from commit 99dbbbcbe9 )
2024-09-22 03:57:37 -04:00
Amaan Qureshi
8e1dbb4617
fix: properly handle utf8 code points for highlight and tag assertions
...
(cherry picked from commit 6f050f0da5 )
2024-09-22 01:47:47 -04:00
Joel Spadin
3ad82e6772
fix(wasm): use / paths for workdir
...
Reimplemented the fix from #2183 to fix building WASM files with Docker
on Windows again. The --workdir argument gives a path inside the Docker
container, so it must use forward slashes regardless of the default path
separator on the host OS.
(cherry picked from commit 755e49e212 )
2024-09-22 01:46:05 -04:00
dependabot[bot]
3492bee2f7
build(deps): bump the cargo group across 1 directory with 11 updates
...
Bumps the cargo group with 10 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow ) | `1.0.86` | `1.0.89` |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.1.14` | `1.1.19` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.16` | `4.5.17` |
| [filetime](https://github.com/alexcrichton/filetime ) | `0.2.24` | `0.2.25` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.4.0` | `2.5.0` |
| [pretty_assertions](https://github.com/rust-pretty-assertions/rust-pretty-assertions ) | `1.4.0` | `1.4.1` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.209` | `1.0.210` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.127` | `1.0.128` |
| [webbrowser](https://github.com/amodm/webbrowser-rs ) | `1.0.1` | `1.0.2` |
| [bindgen](https://github.com/rust-lang/rust-bindgen ) | `0.69.4` | `0.70.1` |
Updates `anyhow` from 1.0.86 to 1.0.89
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.86...1.0.89 )
Updates `cc` from 1.1.14 to 1.1.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.1.14...cc-v1.1.19 )
Updates `clap` from 4.5.16 to 4.5.17
- [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.16...clap_complete-v4.5.17 )
Updates `filetime` from 0.2.24 to 0.2.25
- [Commits](https://github.com/alexcrichton/filetime/compare/0.2.24...0.2.25 )
Updates `indexmap` from 2.4.0 to 2.5.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.4.0...2.5.0 )
Updates `pretty_assertions` from 1.4.0 to 1.4.1
- [Release notes](https://github.com/rust-pretty-assertions/rust-pretty-assertions/releases )
- [Changelog](https://github.com/rust-pretty-assertions/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-pretty-assertions/rust-pretty-assertions/compare/v1.4.0...v1.4.1 )
Updates `serde` from 1.0.209 to 1.0.210
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
Updates `serde_derive` from 1.0.209 to 1.0.210
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
Updates `serde_json` from 1.0.127 to 1.0.128
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/1.0.127...1.0.128 )
Updates `webbrowser` from 1.0.1 to 1.0.2
- [Release notes](https://github.com/amodm/webbrowser-rs/releases )
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/amodm/webbrowser-rs/compare/v1.0.1...v1.0.2 )
Updates `bindgen` from 0.69.4 to 0.70.1
- [Release notes](https://github.com/rust-lang/rust-bindgen/releases )
- [Changelog](https://github.com/rust-lang/rust-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/rust-bindgen/compare/v0.69.4...v0.70.1 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: cc
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: filetime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
- dependency-name: pretty_assertions
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: serde_derive
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: webbrowser
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: bindgen
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit c6faeb948e )
2024-09-22 01:43:38 -04:00
PanGan21
1e9df802fb
fix(docs): fix highlight readme example using compatible versions
...
(cherry picked from commit 1a6af3fafe )
2024-09-17 17:22:21 +02:00
Amaan Qureshi
a6b248c1ad
fix(lib): peek at the next sibling when iterating to find the child that contains a given descendant
...
This issue shows up when we have a zero-width token that is the target
descendant node, previously the previous sibling would be returned as
the child that contains the descendant, which is incorrect.
(cherry picked from commit 0a85744eba )
2024-09-17 17:22:13 +02:00
Firas al-Khalil
6813e8d5c1
build(make): support darwin cross-compile
...
(cherry picked from commit 4f0d463d49 )
2024-09-17 17:22:02 +02:00
Hanlu
b4d4251427
fix: correct comment quote
...
(cherry picked from commit ff813a311b )
2024-09-17 17:21:54 +02:00
ObserverOfTime
7688c6fa2f
chore(bindings): update rust lib docs
...
(cherry picked from commit 6e19fccf39 )
2024-09-17 17:21:34 +02:00
Dave Abrahams
28b71cea27
fix(generate): remove excludes in Package.swift
...
(cherry picked from commit 112acd5b93 )
2024-09-17 17:21:26 +02:00
Will Lillis
d5a1266b25
fix(cli): remove duplicate short options from fuzz command ( #3635 )
...
- Remove short option from fuzz command edits option
- Remove short option from fuzz command iterations option
(cherry picked from commit b0e8e50a19 )
2024-09-15 11:32:11 +03:00
Amaan Qureshi
0eb5b0a029
fix(binding_web): remove nonexistent function definition
...
(cherry picked from commit 8667e3ea0c )
2024-09-08 17:06:15 -04:00
Amaan Qureshi
831c144d9b
fix(generate): do not generate large character sets for unused variables
...
(cherry picked from commit d8ab779df4 )
2024-09-08 15:55:01 -04:00
Jinser Kafka
5f51550a8c
fix(cli): keep skipped tests unchanged in the test/corpus
...
(cherry picked from commit fd190f1d9d )
2024-09-07 18:56:21 -04:00
Amaan Qureshi
513f19d099
fix(binding_web): correct edit signature
...
(cherry picked from commit fcbd67b3fa )
2024-09-07 17:53:40 -04:00
Amaan Qureshi
dce9bedc48
fix(generate): add tree-sitter to the dev-dependencies of the Cargo.toml
...
(cherry picked from commit 4d3d1f0df2 )
2024-09-07 17:53:12 -04:00
Amaan Qureshi
43e16dd75c
fix(lib): backtrack to the last relevant iterator if no child was found
...
(cherry picked from commit 9b398c2b84 )
2024-09-05 18:03:50 -04:00
Liam Rosenfeld
ea6b62cbc6
feat(language): derive Clone and Copy on LanguageFn
...
Allows a LanguageFn to be passed around and create multiple languages since Language::new consumes a LanguageFn
LanguageFn just wraps a function pointer, which already conforms to Copy so this is a simple addition.
(cherry picked from commit d60789afdc )
2024-09-03 12:15:56 -04:00
Amaan Qureshi
22b38a083c
fix(generate): disallow inline variables referencing themselves
...
This fixes an infinite loop bug
(cherry picked from commit 53cc93c267 )
2024-09-01 16:22:23 -04:00
Amaan Qureshi
f312e2c5f5
fix(test): retain attributes when running test -u
...
(cherry picked from commit 272ebf77b9 )
2024-09-01 16:22:01 -04:00
Amaan Qureshi
9a7048bf14
fix(test): exit with an error if a test marked with :error has no error
...
(cherry picked from commit 0a486d508f )
2024-09-01 16:22:01 -04:00
Amaan Qureshi
55fb817dc8
fix(rust): add missing TSNode functions
...
(cherry picked from commit 4387e44b98 )
2024-09-01 16:21:51 -04:00
Amaan Qureshi
1a3f486059
fix(lib): correct extra node creation from non-zero root-alias cursors
...
(cherry picked from commit ee06325f67 )
2024-09-01 16:21:33 -04:00
Amaan Qureshi
a9455a2cc7
feat(bindings): bump go-tree-sitter version
...
(cherry picked from commit d0125ef387 )
2024-09-01 16:21:25 -04:00
Amaan Qureshi
366ffc9b3e
feat(generate): bump tree-sitter dev dependency to 0.23
...
(cherry picked from commit b5a91a4a85 )
2024-09-01 16:21:16 -04:00
Amaan Qureshi
8c8271875a
fix(cli): remove conflicting short flags in the fuzz subcommand
...
(cherry picked from commit 278526ef75 )
2024-09-01 16:21:08 -04:00
Amaan Qureshi
5ff5ab3a42
fix(generate): remove necessary files from gitignore template
...
(cherry picked from commit 253a112dd4 )
2024-09-01 16:19:09 -04:00
Amaan Qureshi
12fb31826b
0.23.0
2024-08-26 09:07:00 -04:00
Amaan Qureshi
fc4d7bd995
fix(cli): dedup preceding_auxiliary_symbols
2024-08-26 09:03:08 -04:00
ObserverOfTime
ff8b50caa6
build(bindings): use language version in soname
2024-08-25 15:03:13 -04:00
ObserverOfTime
f9c4cb69ef
build(lib): include the minor in the soname
2024-08-25 15:03:13 -04:00
Amaan Qureshi
6ef76858c0
fix!: revert interning of a sequence or choice of a single rule
...
This reverts commit 252e2a4bc0
2024-08-24 19:43:04 -04:00
Amaan Qureshi
973b01071e
fix(go): update parser name in binding files, add to docs
2024-08-24 19:24:06 -04:00
Amaan Qureshi
2150c91114
fix(bindings): update go bindings
2024-08-23 23:51:04 -04:00
Ryan Patterson
b5e4ef6d9a
clone wasm store engine ( #3542 )
...
This resolves https://github.com/tree-sitter/tree-sitter/issues/3454 .
This brings the usage of wasmtime::Engine in line with how wasmtime
intends it to be used. All wasmtime functions that receive an Engine
always receive an `&Engine`, never an owned `Engine`. They are always
responsible for cloning the reference if they need it.
This brings the usage of wasmtime::Engine in line with how TSParser
treats TSLanguages: when setting a language to the parser, the parser is
responsible for cloning the reference to the TSLanguage. It is
counterintuitive for TSParser to have different behavior when receiving
wasmtime_engine_t.
C API users also expect this behavior, see "Memory Management"
[here](https://docs.wasmtime.dev/c-api/wasm_8h.html ). Talking about the
C API: without this change, failing to clone the `wasmtime_engine_t`
(which, again, is never something API users need to do in wasmtime) and
then reusing the engine in multiple TSLanguages results in a use after
free. With this change, failing to call `wasm_engine_delete` on your
owned Engine results in a memory leak. Memory leaks are safer than
use-after-free.
2024-08-22 08:01:37 -07:00
Lewis Russell
5364ac4ea8
Merge pull request #3540 from clason/bump-wasmtime
2024-08-20 17:43:34 +01:00
Christian Clason
b0dab87c09
build(deps): bump wasmtime to v24.0.0
2024-08-20 18:09:23 +02:00
ObserverOfTime
f459c3d872
feat(bindings)!: use capsules in python
2024-08-20 12:33:11 +03:00
Matt Guerrette
3c7c17b00b
fix(lib): fix api header C++ interop ( #3534 )
2024-08-18 12:01:13 +03:00
Amaan Qureshi
6dd459b4ab
fix(lib): an empty root node should not precede an empty range
...
The problem is, given an empty file, the root node of this file spans 0
bytes. As such, the logic for determining whether or not the node
precedes the range fails, and is true when it should be false.
2024-08-17 17:05:26 -04:00
Ron Panduwana
2bb20fe2fe
feat: allow external scanners to use the logger
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2024-08-17 14:46:28 -04:00
Amaan Qureshi
fec6c77da8
fix(generate): rename cargo.toml template
...
This fixes issues with vendoring on case-insensitive file systems
2024-08-17 01:39:52 -04:00