v0.22.6
版本发布时间: 2024-05-06 04:58:12
tree-sitter/tree-sitter最新发布版本:v0.24.3(2024-10-10 05:39:59)
[0.22.6] — 2024-05-05
Features
- Improve handling of serialization buffer overflows (https://github.com/tree-sitter/tree-sitter/pull/3318)
- Reverse iteration through node parents (https://github.com/tree-sitter/tree-sitter/pull/3214)
-
cli: Support
NO_COLOR
(https://github.com/tree-sitter/tree-sitter/pull/3299) - cli: Add test listing and allow users to parse a specific test number (https://github.com/tree-sitter/tree-sitter/pull/3067)
- grammar: Add "inherits" field if available (https://github.com/tree-sitter/tree-sitter/pull/3295)
Bug Fixes
- Correctly load field data from wasm languages
- Improve error message when the
tree-sitter
field is malformed - Don't error out on package.json lookup errors if
--no-bindings
is passed (https://github.com/tree-sitter/tree-sitter/pull/3323) - cli: Keep default cc flags in build
- cli: Properly account for multi-grammar repos when using docker to build a wasm parser (https://github.com/tree-sitter/tree-sitter/pull/3337)
- generate: Don't check arbitrarily named dirs
-
generate: Take
AsRef<Path>
for the path parameter to avoid clones (https://github.com/tree-sitter/tree-sitter/pull/3322) -
highlight: Correct signature of
ts_highlighter_add_language
- lib: Do not return field names for extras (https://github.com/tree-sitter/tree-sitter/pull/3330)
- lib: Advance the lookahead end byte by 4 when there's an invalid code point (https://github.com/tree-sitter/tree-sitter/pull/3305)
- rust: Update README example (https://github.com/tree-sitter/tree-sitter/pull/3307)
- rust: Use unix + wasi cfg instead of not windows for fd (https://github.com/tree-sitter/tree-sitter/pull/3304)
- test: Allow newlines in between test name and attribute
-
wasm: Correct
childrenFromFieldXXX
method signatures (https://github.com/tree-sitter/tree-sitter/pull/3301) - xtask: Always bump every crate in tandem
- zig: Make usable as a zig dependency (https://github.com/tree-sitter/tree-sitter/pull/3315)
Documentation
- Mention build command variables
- Swap
\s
for\\s
in query example - highlight: Typo (https://github.com/tree-sitter/tree-sitter/pull/3290)
Refactor
-
tests: Migrate remaining
grammar.json
tests togrammar.js
(https://github.com/tree-sitter/tree-sitter/pull/3325)
Build System and CI
- Add nightly rustfmt to workflow for linting (https://github.com/tree-sitter/tree-sitter/pull/3333)
- Fix address sanitizer step (https://github.com/tree-sitter/tree-sitter/pull/3188)
- deps: Bump cc from 1.0.92 to 1.0.94 in the cargo group (https://github.com/tree-sitter/tree-sitter/pull/3298)
- deps: Bump the cargo group with 6 updates (https://github.com/tree-sitter/tree-sitter/pull/3313)
-
xtask: Bump
build.zig.zon
version when bumping versions
1、 tree-sitter-linux-arm.gz 5.77MB
2、 tree-sitter-linux-arm64.gz 5.79MB
3、 tree-sitter-linux-powerpc64.gz 6.29MB
4、 tree-sitter-linux-x64.gz 8.23MB
5、 tree-sitter-linux-x86.gz 6.04MB
6、 tree-sitter-macos-arm64.gz 6.88MB
7、 tree-sitter-macos-x64.gz 7.07MB
8、 tree-sitter-windows-arm64.gz 4.43MB
9、 tree-sitter-windows-x64.gz 6.5MB
10、 tree-sitter-windows-x86.gz 4.5MB
11、 tree-sitter.js 72.46KB
12、 tree-sitter.wasm 184.21KB