dependabot[bot]
087bcea02f
build(deps): bump the cargo group with 3 updates
...
Bumps the cargo group with 3 updates: [anyhow](https://github.com/dtolnay/anyhow ), [cc](https://github.com/rust-lang/cc-rs ) and [webbrowser](https://github.com/amodm/webbrowser-rs ).
Updates `anyhow` from 1.0.82 to 1.0.83
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.82...1.0.83 )
Updates `cc` from 1.0.96 to 1.0.97
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.96...1.0.97 )
Updates `webbrowser` from 1.0.0 to 1.0.1
- [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.0...v1.0.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: webbrowser
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 10:10:33 -04:00
Paolo Tranquilli
d35e40185a
fix(rust): fetch CARGO_MANIFEST_DIR at runtime in build script
...
The `CARGO_MANIFEST_DIR` environment variable should be accessed by
`build.rs` at run time rather than compile time. This was for example
causing issues when importing `tree-sitter` via
[`rules_rust`](https://github.com/bazelbuild/rules_rust ) in bazel,
where compilation and running happen in separate environments.
2024-05-13 10:09:58 -04:00
Amaan Qureshi
8e8648afa9
fix(test): multi-grammar corpus tests are now in the repo root
2024-05-06 15:25:42 -04:00
Amaan Qureshi
b1fd3214db
feat(cli): bump unicode data to v15.1.0
2024-05-06 15:25:42 -04:00
Amaan Qureshi
6e6dcf1caf
test: modernize scanner files
2024-05-05 18:31:53 -04:00
Amaan Qureshi
10e0facb88
docs: remove duplicate pr # in changelog
2024-05-05 17:58:08 -04:00
Amaan Qureshi
9173442dd7
docs: update changelog
2024-05-05 17:49:48 -04:00
Amaan Qureshi
b40f342067
0.22.6
2024-05-05 16:47:18 -04:00
WillLillis
577d333849
feat(cli): add test listing and allow users to parse a specific test number
2024-05-05 16:35:17 -04:00
Amaan Qureshi
33045ee898
fix(test): allow newlines in between test name and attribute
2024-05-05 15:19:42 -04:00
Amaan Qureshi
1e219ff9eb
fix(cli): properly account for multi-grammar repos when using docker to build a wasm parser
2024-05-05 14:56:42 -04:00
ObserverOfTime
572cdaa7c0
ci: fix address sanitizer step
2024-05-05 13:06:45 -04:00
ObserverOfTime
6bfdae00f2
docs: mention build command variables
2024-05-05 13:06:45 -04:00
ObserverOfTime
a2d2da314d
fix(cli): keep default cc flags in build
2024-05-05 13:06:45 -04:00
Amaan Qureshi
90ba5256d1
fix(highlight): correct signature of ts_highlighter_add_language
2024-05-04 20:35:05 -04:00
Amaan Qureshi
67a043911c
test: temporarily disable php test
2024-05-04 03:05:58 -04:00
Will Lillis
3a42c27061
ci: add nightly rustfmt to workflow
2024-05-02 02:34:39 -04:00
Amaan Qureshi
4c083252ec
fix(lib): advance the lookahead end byte by 4 when there's an invalid code point
...
This helps in the case where an edit was made in the middle of a code
point, but bytes 1-3 are valid, thus we could advance by at most 4 bytes
2024-04-30 20:55:43 -04:00
Amaan Qureshi
61d0395543
fix(lib): do not return field names for extras
2024-04-30 19:23:11 -04:00
WillLillis
946acfd70f
feat(cli): support NO_COLOR
...
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This allows users to avoid colored output when NO_COLOR is set to 1.
2024-04-29 20:25:41 -04:00
Amaan Qureshi
5e5026aa73
fix(xtask): always bump every crate in tandem
2024-04-29 00:06:48 -04:00
Amaan Qureshi
627617edb4
refactor(tests): migrate remaining grammar.json tests to grammar.js
2024-04-29 00:01:35 -04:00
Amaan Qureshi
26fa3a76a5
fix(generate): take AsRef<Path> for the path parameter to avoid clones
2024-04-27 17:09:36 -04:00
ObserverOfTime
5aad87a74c
fix(generate): don't check arbitrarily named dirs
...
i.e. check `bindings/swift` rather than `bindings/swift/TreeSitterFoo`
since the dir name may have different casing (e.g. `TreeSitterFOO`)
2024-04-27 17:09:36 -04:00
Amaan Qureshi
41308888fc
fix: don't error out on package.json lookup errors if --no-bindings is passed
2024-04-27 16:29:26 -04:00
Amaan Qureshi
517e61b3e6
fix: improve error message when the tree-sitter field is malformed
2024-04-27 16:29:26 -04:00
dependabot[bot]
ac19638f71
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.0.94` | `1.0.95` |
| [ctor](https://github.com/mmastrac/rust-ctor ) | `0.2.7` | `0.2.8` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.197` | `1.0.198` |
| [serde_derive](https://github.com/serde-rs/serde ) | `1.0.197` | `1.0.198` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.115` | `1.0.116` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `1.0.58` | `1.0.59` |
Updates `cc` from 1.0.94 to 1.0.95
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.94...1.0.95 )
Updates `ctor` from 0.2.7 to 0.2.8
- [Commits](https://github.com/mmastrac/rust-ctor/commits )
Updates `serde` from 1.0.197 to 1.0.198
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198 )
Updates `serde_derive` from 1.0.197 to 1.0.198
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.197...v1.0.198 )
Updates `serde_json` from 1.0.115 to 1.0.116
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.115...v1.0.116 )
Updates `thiserror` from 1.0.58 to 1.0.59
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.58...1.0.59 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
- dependency-name: ctor
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: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 16:27:00 -04:00
Amaan Qureshi
c19f23f420
build(xtask): bump build.zig.zon version when bumping versions
2024-04-26 10:38:11 -04:00
bfredl
32cfceec62
fix(zig): make usable as a zig dependency
...
Make this usable as a dependency of a zig 0.12 project:
- build.zig.zon must exist to be used as a zig dependency
- public headers need to be installed as part of the artifact
2024-04-26 14:17:31 +02:00
Max Brunsfeld
8040baed18
Merge pull request #3318 from tree-sitter/serialization-buffer-overflows
...
Improve handling of serialization buffer overflows
2024-04-25 14:49:09 -07:00
Max Brunsfeld
37a919184f
Position serialization buffer after language statics in wasm linear memory
2024-04-25 14:21:28 -07:00
Max Brunsfeld
78efd96bbe
Crash earlier if native external scanner overflows serialization buffer
2024-04-25 13:55:47 -07:00
Max Brunsfeld
e9fd4ccf0c
Guard against serialization buffer overflows from wasm languages
2024-04-25 13:51:05 -07:00
Max Brunsfeld
d7a23cf017
fix: Correctly load field data from wasm languages
...
Previously, if the last production id in a language did not have
a unique set of fields, the field maps weren't loaded correctly
from wasm.
Co-authored-by: Marshall <marshall@zed.dev>
2024-04-24 16:29:44 -07:00
vanaigr
90e0e28b95
feat: reverse iteration through node parents ( #3214 )
2024-04-23 15:19:57 +01:00
Liam Rosenfeld
0f125e2d09
fix(rust): use unix + wasi cfg instead of not windows for fd
2024-04-23 10:13:38 -04:00
Max Brunsfeld
af695f3c0a
Merge pull request #3310 from DavisVaughan/fix/regex-typo
...
Swap `\s` for `\\s` in documentation example
2024-04-21 21:33:39 -07:00
Davis Vaughan
937dfbfbab
Swap \s for \\s
2024-04-20 07:51:45 -04:00
Jisuk Byun
4cd23ff6b0
fix(rust): update README example
2024-04-18 13:25:42 -04:00
Adrien Friggeri
01bf431261
fix(wasm): correct childrenFromFieldXXX method signatures
...
These do not expect a `cursor` parameter
2024-04-16 13:48:53 -04:00
dependabot[bot]
8b28443d5e
build(deps): bump cc from 1.0.92 to 1.0.94 in the cargo group
...
Bumps the cargo group with 1 update: [cc](https://github.com/rust-lang/cc-rs ).
Updates `cc` from 1.0.92 to 1.0.94
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Commits](https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.94 )
---
updated-dependencies:
- dependency-name: cc
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 19:16:06 -04:00
Enno T. Boland
3ab3b055ed
docs(highlight): typo
2024-04-14 17:15:43 -04:00
ObserverOfTime
83b6010461
feat(grammar): add "inherits" field if available
2024-04-14 15:59:01 -04:00
Max Brunsfeld
159c34fdff
docs: update changelog
2024-04-14 10:19:25 -07:00
Max Brunsfeld
cdd4688860
0.22.5
2024-04-14 10:17:04 -07:00
Max Brunsfeld
32b8794c5c
docs: Add note about 0.22.3 release to CHANGELOG.md
2024-04-14 10:07:30 -07:00
Max Brunsfeld
295344b142
fix: Avoid generating unused character set constants
2024-04-14 09:57:10 -07:00
Mark McCulloh
a7a47d561d
fix(rust): compilation on wasm32-wasi
2024-04-13 18:30:41 -04:00
Amaan Qureshi
9ba8f6dfe6
fix(cli): test parsing on windows
2024-04-12 21:09:28 -04:00
Max Brunsfeld
285257998c
0.22.4
2024-04-12 17:03:02 -07:00