Up to [cvs.NetBSD.org] / pkgsrc / textproc / tree-sitter
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
tree-sitter: update to 0.27.0.
Changes:
feat: start working on v0.27 by @clason in #5127
docs(cli): include information on generated files by @clason in #5129
fix(docs): remove conflicting --release cargo flag in contributing.md by @arkriny in #5132
fix(cli): trailing whitespace after multiline text nodes in CST by @arkriny in #5133
ci: bump the actions group with 2 updates by @dependabot[bot] in #5137
fix(cli): correct discrepancy with cst for --no-ranges by @WillLillis in #5134
ci: bump korthout/backport-action from 3 to 4 in the actions group by @dependabot[bot] in #5155
build(deps): bump the cargo group with 2 updates by @dependabot[bot] in #5154
Fix Playground Query by @kevin-hua-kraken in #5150
fix(cli): cst printing improvements by @arkriny in #5161
docs(cli): better description of files generated by init by @clason in #5152
fix(cli): set language in cwd for all usages of highlight command by @WillLillis in #5180
feat(cli): concurrent builds of the same grammar on different locations on disk by @stackmystack in #5174
build(deps): bump the cargo group with 2 updates by @dependabot[bot] in #5184
fix(cli): canonicalize build --output path by @WillLillis in #5183
feat(cli): make test --update rewrite all corpus files by @arkriny in #5179
build(deps): update rquickjs to 0.11.0 by @clason in #5186
fix(cli): increase verbosity of tree-sitter init -u updates by @WillLillis in #5178
fix(cli): restore test summary output for tree-sitter test by @arkriny in #5197
feat(wasm): add some common used defs to wasm stdlib by @trim21 in #5199
fix(wasm): update wasm-stdlib.h by @clason in #5209
build(deps): bump clap from 4.5.53 to 4.5.54 in the cargo group by @dependabot[bot] in #5211
Fix python free-threading compatibility by @kevmo314 in #5212
fix(build): define _BSD_SOURCE by @WillLillis in #5219
build(deps): bump the cargo group with 3 updates by @dependabot[bot] in #5227
docs: various updates by @WillLillis in #5228
fix(docs): appease clippy regarding spacing in README by @WillLillis in #5236
fix(wasm): regenerate stdlib with wasm-opt by @clason in #5237
fix: Clarify lifetime parameters; Rust 2018 idioms by @DanikVitek in #5223
feat: free memory automatically by @theanarkh in #5225
fix(cli): warn user when nm can't be run to verify the symbols inside the parser being built by @WillLillis in #5245
feat(ci): ensure wasm-stdlib.h is regenerated when wasm stdlib source files are modified by @WillLillis in #5229
docs(playground): highlight full row for highlighted nodes by @Tam1SH in #5207
ci: bump actions/github-script from 7 to 8 in the actions group by @dependabot[bot] in #5248
build(deps): bump cc from 1.2.52 to 1.2.53 in the cargo group by @dependabot[bot] in #5247
wasm: give binaryen the wasi-sdk treatment by @WillLillis in #5241
fix(loader): search correct cache directory for wasi-sdk clang by @WillLillis in #5251
Fix tree-sitter-ruby crate failing to build to Wasm by @kossnocorp in #5158
fix(wasm): add iswpunct to stdlib by @clason in #5130
fix(lib): address strict aliasing violations with Array type by @WillLillis in #5242
misc Windows fixes by @WillLillis in #5256
docs: document parser library symbol checks for build command by @WillLillis in #5258
build(deps): bump the cargo group with 2 updates by @dependabot[bot] in #5263
fix(wasm): correct several bugs in realloc by @WillLillis in #5261
fix(ci): add wasm-stdlib.h to cache key by @WillLillis in #5266
fix(generate): error if a supertype is defined as a terminal by @WillLillis in #5267
Action overflow by @WillLillis in #5273
fix(wasm): don't wasm-opt twice by @clason in #5253
build(deps): cargo update by @clason in #5281
fix(loader): account for nm/ld fix on newer powerpc linux toolchains by @WillLillis in #5268
wasm: fix realloc optimization by @WillLillis in #5276
fix(cli): use --edits value for fuzz tests by @WillLillis in #5287
feat(cli): add --verbose flag to build command by @WillLillis in #5285
rust: bump language crate version by @WillLillis in #5291
fix(rust): place std::env::set_var inside unsafe blocks by @WillLillis in #5293
build(deps): bump bytes from 1.11.0 to 1.11.1 by @dependabot[bot] in #5297
fix(lib): correct ts_parser_parse docstring by @bertie-wheen in #5295
fix(test): acquire lock before downloading wasm tools by @WillLillis in #5296
fix(cli): allow for both debug logs and graphs by @WillLillis in #5306
lib: clean up strict aliasing fixes in array.h by @amaanq in #5309
fix(cli): require tree-sitter CLI in CMake template by @WillLillis in #5310
fix(rust)!: return u32 from Node::child_count by @WillLillis in #5313
feat: allow - in grammar names by @jfly in #5315
fix(query): prevent cross-branch capture contamination in alternations with quantifiers by @WillLillis in #5317
web: add default export to CJS bundle by @chadxz in #5305
ci: speed it up by @amaanq in #5322
build(deps): bump eslint from 9.11.0 to 9.39.2 in /crates/cli/eslint by @dependabot[bot] in #5283
build(deps): bump the cargo group with 5 updates by @dependabot[bot] in #5316
build(deps): bump the cargo group with 4 updates by @dependabot[bot] in #5338
ci: bump the actions group with 2 updates by @dependabot[bot] in #5339
rust: edition 2024, MSRV 1.90, lint cleanup, and dep updates by @amaanq in #5326
feat(highlight)!: utf16 support by @WillLillis in #5324
use provided by RedoxOS byte orders implementations by @greyshaman in #5342
build(deps): bump wasmtime to v36.0.5 LTS by @clason in #5350
fix(generate): unsafe extern -> extern in rendered C parser by @WillLillis in #5352
fix(lib): cast NULL in ts_subtree_children macro by @lucasew in #5343
ci: add a dry-run workflow to test rust releases by @WillLillis in #5292
build(deps): bump ajv from 6.12.6 to 6.14.0 in /crates/cli/eslint by @dependabot[bot] in #5355
build(deps): bump minimatch, eslint and eslint-plugin-jsdoc in /crates/cli/eslint by @dependabot[bot] in #5354
ci: retrigger crates check on PR updates by @clason in #5357
tree-sitter: update to 0.26.3.
0.26.3
What's Changed
docs(cli): fix wrong file path for Java bindings test by @Marcono1234 in #5117
ci(release): use node 24 by @ObserverOfTime in #5120
build(deps): cargo update by @clason in #5125
0.26.3 by @clason in #5126
0.26.2
What's Changed
build(deps): bump esbuild from 0.27.0 to 0.27.1 in /lib/binding_web in the npm group across 1 directory by @dependabot[bot] in #5113
0.26.x by @WillLillis in #5115
0.26.1
What's Changed
feat(cli): specify abi version via env var by @ObserverOfTime in #4173
ci: use ubuntu-22.04 for x64 builds by @amaanq in #4175
fix(lib): prevent finished_tree assertion failure by @ribru17 in #4176
build: do not define _POSIX_C_SOURCE on NetBSD by @0-wiz-0 in #4181
fix(web): provide type in the exports by @robertohuertasm in #4185
add generate crate to workspace & adjust to new clippy lints by @amaanq in #4192
refactor(web): rename tree-sitter.js to web-tree-sitter.js by @amaanq in #4194
feat: Windows support using MinGW-w64 by @MisterDA in #4201
Fix crash when loading languages w/ old ABI via wasm by @maxbrunsfeld in #4210
Ignore external tokens that are zero-length and extra by @maxbrunsfeld in #4213
Reset result_symbol field of lexer in wasm memory in between invocations by @maxbrunsfeld in #4218
Decrease the MSRV for the tree-sitter-language crate by @maxbrunsfeld in #4221
fix(wasm): restore passing in ERROR to descendantsOfType by @WillLillis in #4226
typo: but is only works → but it only works by @hippietrail in #4242
adapt to new rust lints and tweak ci by @WillLillis in #4249
Mark all format-like macros for Clippy by @nyurik in #4231
fix symbol leak for character sets by @polazarus in #4255
Fix cases where error recovery could infinite loop by @maxbrunsfeld in #4257
fix(rust): adapt to new nightly lint by @WillLillis in #4254
fix(lib): remove duplicate TSLanguageMetadata typedef by @notxvilka in #4268
rust bindings: Add information about using WASM grammar files to README by @lucifayr in #4235
Update build.zig.zon for zig master/0.14 by @nihklas in #4258
fix(docs): update test command flag from -f to -i by @jonshea in #4263
fix(cli): properly escape invisible characters in parse error output by @WillLillis in #4276
feat(lib): quote invalid nodes, fields, and captures by @ribru17 in #4278
build(deps): bump ring from 0.17.8 to 0.17.13 by @dependabot[bot] in #4272
fix(build): bump version to 0.26.0 by @clason in #4282
fix(xtask): error if new version supplied to xtask is less than or equal to current version by @WillLillis in #4287
fix(make): make install shouldn’t fail when a parser bundles no queries by @mavit in #4284
Change (Node | null)[] return types to Node[] by @tmr232 in #4283
build(deps): bump the cargo group across 1 directory with 21 updates by @dependabot[bot] in #4275
chore(cli): remove deprecated --no-bindings flag from generate command by @WillLillis in #4292
build.zig.zon: Fix package hashes for Zig 0.14 by @JacobCrabill in #4301
build(deps): bump the cargo group across 1 directory with 8 updates by @dependabot[bot] in #4307
fix(rust): address new clippy lint for pointer comparisons by @WillLillis in #4305
fix(rust): use core crates for no_std by @Tiggilyboo in #4303
build(deps): update emscripten to v4.0.5 by @clason in #4309
fix(rust): address new nightly lint for pointer comparisons by @WillLillis in #4313
fix(highlight): account for multiple rows in highlight testing assertions by @WillLillis in #4333
docs: Fix link to named-vs-anonymous-nodes section by @ZedThree in #4328
Fix typo of "corresponds" by @bernardosulzbach in #4340
build(deps): bump the cargo group across 1 directory with 5 updates by @dependabot[bot] in #4342
ci: bump actions/create-github-app-token from 1 to 2 in the actions group by @dependabot[bot] in #4341
Add @generated to parser.c header by @edgarogh in #4338
Fix WASI build by not calling a non-existent function. by @jaboatman in #4343
fix(rust): clarify error message for non-token reserved words by @jonshea in #4323
Make highlighting more deterministic when themes are ambiguous by @narpfel in #4327
fix(lib): reset parser options after use by @ribru17 in #4355
fix(bindings): report wasm store error in rust bindings set_language by @WillLillis in #4348
build(deps): bump the cargo group with 4 updates by @dependabot[bot] in #4360
fix(xtask): trim EMSCRIPTEN_TAG arg to docker command in build-wasm command by @WillLillis in #4365
fix(web): correct childWithDescendant() functionality by @ribru17 in #4363
Tidy up the docs in auto-generated Rust bindings by @LikeLakers2 in #4294
binding_web: replace dynamic require with import by @tmr232 in #4304
Refine the documentation and command line help for "parse --edits" by @danielpunkass in #4191
export wasm files to better support bundling use cases by @vemoo in #4208
build(deps): bump vite from 6.1.0 to 6.2.6 in /lib/binding_web by @dependabot[bot] in #4352
style(cli): formatting by @amaanq in #4373
fix(ci): increase timeouts for flaky tests by @WillLillis in #4371
perf(highlight): use BTreeMap over IndexMap for highlight configs by @WillLillis in #4372
build(deps): bump the cargo group with 2 updates by @dependabot[bot] in #4386
Fixed typo in parsing explanation by @Tamchuk in #4388
cli: Compile parsers to wasm using wasi-sdk, not emscripten by @maxbrunsfeld in #4393
Fix wasm build issues introduced by switching to wasi-sdk by @maxbrunsfeld in #4407
fix(xtask): properly trim emscripten version at the source by @WillLillis in #4402
fix(parse): mark logging closure as move by @WillLillis in #4406
docs(rust): remove adding cc as a build dependency for consumers by @amaanq in #4409
fix(generate): mark url as a Windows-only dependency by @amaanq in #4411
build(deps): bump the cargo group with 3 updates by @dependabot[bot] in #4416
fix(lib): do not access the alias sequence for the end subtree in ts_subtree_summarize_children by @amaanq in #4414
build(deps): bump vite from 6.3.2 to 6.3.4 in /lib/binding_web by @dependabot[bot] in #4419
fix(rust): address some new nightly clippy lints by @WillLillis in #4424
fix(query): correct last_child_step_index in cases where a new step wasn't created. by @WillLillis in #4422
build(deps): bump the cargo group with 2 updates by @dependabot[bot] in #4433
fix(lib): return early for empty predicate step slice by @WillLillis in #4440
build(deps): bump the cargo group with 6 updates by @dependabot[bot] in #4444
illumos has endian.h by @papertigers in #4450
build(deps): bump cc from 1.2.22 to 1.2.23 in the cargo group by @dependabot[bot] in https://github.com/tree-s...
tree-sitter: update to 0.25.1.
Fix pkg-config file path.
Features
cli: Specify abi version via env var (#4173)
Bug Fixes
bindings: Correct Zig bindings to expose a language function
lib: Prevent finished_tree assertion failure (#4176)
Documentation
Correct build steps for WASM files
Build System and CI
Use ubuntu-22.04 for x64 builds (#4175)
Bump version to 0.25.1
Other
rust: Correct doc comments
0.25.0
Notices
This is a large release. As such, a few major changes and how to adapt to them are outlined below:
web-tree-sitter was rewritten in TypeScript. With that, we also now publish the sourcemaps, and debug builds for the library. We also publish both CommonJS and ESM modules.
The internal ABI was bumped to 15. The main benefits this brings is that the language name, version, supertype info, and reserved words are added to the parsers. To use ABI 15, you must have a tree-sitter.json file in your repository, since the version information for the parser is pulled from this file.
Parsing and Querying should be cancelled using the "progress callback", rather than setting a timeout or a cancellation flag, which are now deprecated. To do so, use the "parse/query with options" function in the bindings you choose to use, in the next release the old way of timing out parsing will be removed, which allows us to get rid of our dependency on the time.h headers in the core library.
MISSING nodes can now be queried, and queries involving supertypes are properly validated now.
The ts_node_child_containing_descendant function was removed; use ts_node_child_with_descendant instead (which has nearly the same behavior but can also return descendant.)
TSInput now includes a (mandatory) new field DecodeFunction, which allows passing a custom decode function. To use the builtin function, pass NULL.
In the DSL, there is now a RustRegex function, which takes in a Rust regex as a string. All of the capabilities of Rust's regex engine are available here, which allows for some nice features that aren't possible with JavaScript regexes.
We've migrated our documentation to mdBook, and greatly improved the docs.
Breaking
Properly handle UTF-16 endianness encoding (#3740)
Bump internal abi to 15 (#3803)
Update playground with new web bindings (#4121)
bindings: Update swift bindings (#4154)
cli: Remove migration code for tree-sitter.json (#4107)
generate: Use regex_syntax::Hir for expanding regexes (#3831)
lib: Remove ts_node_child_containing_descendant (#4107)
lib: Add the ability to specify a custom decode function (#3833)
web: Rewrite the library in TypeScript (#4121)
web: Use the WASM module in the bindings, and not the other way around (#4121)
web: Rename pattern to patternIndex in QueryMatch (#4141)
web: Deprecate Language.query in favor of new Query (#4141)
Features
Drop legacy binding updates (#3734)
Bump version to 0.25 (#3752)
Allow setting the output directory for generated source files (#2614)
Move scripts to xtasks (#3758)
Add CST pretty-printer for parser output (#3762)
Add version subcommand for versioning grammars (#3786)
Add build sha to parser.c header comment (#3828)
Implement a cache for get_column (#2503)
Generate schema in tree-sitter.json (#3947)
Support querying missing nodes (#3887)
Add flag to output css classes instead of inline styles in HTML highlighter output (#3879)
Add xtask to bump emscripten-version (#4015)
Add 'reserved word' construct (#3896)
Add Supertype API (#3938)
Support passing in a Rust regex in the grammar dsl (#4076)
Allow parser balancing to be cancellable (#4122)
Remove lazy_static in favor of LazyLock (#4130)
Add and apply eslint config (#4121)
Begin autogenerating web-tree-sitter.d.ts (#4121)
Publish both CJS and ESM files (#4121)
Add a patternIndex field to QueryCapture (#4141)
Improve PredicateStep types (#4141)
Add the semantic version to TSLanguage, and expose an API for retrieving it (#4135)
Add error information in the progress callback (#3987)
bindings: Auto-detect scanners (#3809)
bindings: Drop language name from node (#3184)
bindings: Update some binding files (#3952)
bindings: Drop python 3.9 support (#3799)
bindings: Support free-threaded python build (#3799)
bindings: Add opt-in zig bindings (#4144)
bindings: Use cc 1.2 for Rust (#4156)
cli: Verify assertions for every carat in tests, not just the first one (#3927)
cli: Add nushell completions (#4000)
cli: Don't validate email addresses in init command (#3999)
cli: Show parse times in testing output (#3939)
cli: Display parse and edit times separately for parse --time (#4016)
cli: Make input handling agnostic (#4054)
cli: Rework parse to use new input handler (#4054)
cli: Rework query to use new input handler (#4054)
cli: Rework highlight to use new input handler (#4054)
cli: Rework tags to use new input handler (#4054)
cli: Add json summary of parsing (#4048)
cli: Allow test subcommand to include/exclude by corpus test file names (#4095)
cli: Improve readability of parse debug output (#4118)
generate: Add a comment with the tree-sitter version (#3825)
generate: Add .exp and .lib files to gitignore template (#4079)
generate: Explicitly disallow non-terminals in non-terminals (#4111)
generate: Properly filter out unused rules (#4111)
generate: Add an extra field for extra nodes in node-types.json (#4116)
generate: Defer to ABI 14 if tree-sitter.json doesn't exist, rather than hard failing (#4156)
highlight: Mark TSHighlighter fields as pub (#3990)
init: Allow dashes in scopes (#4142)
init: Add an optional funding field (#4142)
init: Add a class-name field to grammars (#4142)
init: Add a title field to grammars (#4142)
lib: Wrap subtrees with changes in green circles (#3741)
lib: Add the language name (#3184)
lib: Add ts_parser_parse_with_options (#3843)
lib: Add ts_query_cursor_exec_with_options (#3843)
lib: Use const for TSCharacterRanges (#4027)
lib: Implement Send + Sync for WasmStore (#4130)
loader: Add language_for_configuration (#3816)
loader: Add error message when a tree-sitter.json file is invalid (#3897)
loader: Support multi-barreled file extensions (#3880)...
tree-sitter: update to 0.24.2.
[0.24.2] - 2024-10-06
Features
Drop legacy binding updates
Bug Fixes
templates: Properly replace author email
Build System and CI
bindings: Improve cmake file
cmake: Support amalgamated build
cmake: Correct library scopes
make: Fix tree-sitter.pc generation (#3745)
Other
templates: Update npm packages
[0.24.1] - 2024-10-04
Bug Fixes
generate: Move generated header files into the generate crate
[0.24.0] - 2024-10-04
Breaking
Remove C++ support for external scanners (#3602)
Remove filter flag from commands in favor of include and exclude (#3604)
Remove the build-wasm subcommand (#3605)
Move generation of grammar files to an init command (#3694)
Implement StreamingIterator instead of Iterator for QueryMatches and QueryCaptures (#3504)
generate: Remove unused rules (#3722)
lib: Child_containing_descendant now returns direct children (#3703)
lib: Treat nodes' end ranges exclusively in goto_first_child_for_{byte,point} (#3263)
Features
Add an API to time out query executions (#3559)
Add field_name_for_named_child (#3614)
Add root field in node-types.json (#3615)
Add eslint configuration package (#3666)
Provide a rebuild flag to force rebuild parsers (#3672)
Add shell completions (#3675)
Move generate logic to its own crate (#3689)
Add --overview-only to test subcommand (#3501)
Move tree-sitter configuration to dedicated file (#3700) (#3700)
api: Expose function to check if symbol represents a supertype (#3616)
bindings: Bump go-tree-sitter version (#3564)
cli: Add a no-ranges flag to the parse command (#3687)
generate: Bump tree-sitter dev dependency to 0.23 (#3563)
generate: Add a no-op --no-bindings flag
init: Add an update flag (#3698)
language: Derive Clone and Copy on LanguageFn (#3585)
schema: Misc improvements (#3681)
test: Test all queries
Bug Fixes
Correct comment quote (#3630)
Properly handle utf8 code points for highlight and tag assertions (#3610)
Do not generate spurious files if the grammar path is not the default path (#3677)
Disallow empty string literals in rules (#3679)
Correct test name parsing when the prior test has equal signs (#3704)
Handle more cases of editing subtrees that depend on column values (#3257)
Exclude APIs that dup given file descriptors from WASI builds (#3475)
Deprecate child_containing_descendant and add child_with_descendant instead (#3708)
binding_web: Correct edit signature (#3599)
binding_web: Remove nonexistent function definition (#3612)
bindings: Use RUST_BINDING_VERSION in Cargo.toml template
bindings: Lower go version to 1.22 (#3711)
build: Correct wasm root path lookup (#3723)
build: Force rebuild parsers when build is invoked (#3729)
cli: Remove conflicting short flags in the fuzz subcommand (#3562)
cli: Keep skipped tests unchanged in the test/corpus (#3590)
cli: Remove duplicate short options from fuzz command (#3635) (#3635)
cli: Generate the parser version from the config as well
docs: Fix highlight readme example using compatible versions (#3573)
fuzz: Skip tests marked with :skip & don't report errors on tests marked with :error (#3640)
generate: Remove necessary files from gitignore template (#3561)
generate: Disallow inline variables referencing themselves (#3569)
generate: Add tree-sitter to the dev-dependencies of the Cargo.toml (#3597)
generate: Do not generate large character sets for unused variables (#3606)
generate: Remove excludes in Package.swift (#3631)
generate: Add *.scm section to .editorconfig template (#3724)
generate: Filter out unused rules in other spots (#3726)
init: Fix some schema issues
init: Don't prompt to reconfigure (#3713)
init: Do not migrate package.json on error (#3718)
lib: Correct extra node creation from non-zero root-alias cursors (#3568)
lib: Backtrack to the last relevant iterator if no child was found (#3570)
lib: Peek at the next sibling when iterating to find the child that contains a given descendant (#3566)
lib: Correct descendant-for-range behavior with zero-width tokens (#3688)
lib: Silence warnings with -Wpedantic (#3691)
lib: Ensure an unfinished state was found before removing it (#3727)
rust: Add missing TSNode functions (#3571)
test: Exit with an error if a test marked with :error has no error
test: Retain attributes when running test -u (#3572)
test: Correctly handle assertions on empty lines (#3674)
wasm: Use / paths for workdir (#3658)
Documentation
Add Kotlin to the playground (#3560)
changelog: Add 0.23.0 release notes (#3565)
Refactor
Improve the grammar schema
cli: Break out subcommand logic into separate functions (#3676)
Build System and CI
Add backport workflow (#3575)
Bump deps (#3696)
Bump language to 0.1.1 (#3730)
bindings: Add CMakeLists.txt file (#3608)
cmake: Link wasmtime dependencies (#3717)
deps: Bump the cargo group across 1 directory with 11 updates (#3644)
deps: Bump the cargo group with 3 updates (#3671)
lib: Build using cmake (#3541)
make: Support darwin cross-compile (#3641)
xtask: Bump cmake version in bump-version
xtask: Only consider major and minor versions when validating the current version
xtask: Ignore the language crate
Other
Remove compile_flags.txt (#3667)
Update generate crate paths (#3697)
bindings: Update rust lib docs (#3621)
lib: Add parameter names in declarations that are missing them (#3692)
tests: Do not use .as_bytes().len() on strings (#3664)
tree-sitter: update to 0.23.0.
[0.23.0] - 2024-08-26
Breaking
Introduce tree-sitter-language crate for grammar crates to depend on (#3069)
Revert interning of a sequence or choice of a single rule (#3548)
bindings: Use capsules in python (#3384)
dsl: Support other JS runtimes (#3355)
Features
Add fuzz subcommand (#3385)
Allow external scanners to use the logger (#3204)
bindings: Add query constants to python
bindings: Add node, python, swift tests (#3178)
bindings: Update npm scripts (#3210)
cli: Bump unicode data to v15.1.0
cli: Add debug build flag (#3279)
cli: Attach helpful context when grammar.json cannot be found (#3405)
cli: Add --show-fields flag to test command (#3502)
lib: Add ts_query_end_byte_for_pattern (#3451)
lib: Support no_std
zig: Update outdated path syntax (#3383)
Bug Fixes
Always reset to the first language when iterating over language attributes (#3375)
Better error when a supertype rule is invalid (#3400)
Intern a sequence or choice of a single element the same as the element itself
Do not "absorb" rules that consist of a single terminal if the rule is hidden (#2577)
bindings: Update go bindings (#3544)
cli: Installation via authenticated proxy (#3414)
cli: Dedup preceding_auxiliary_symbols (#3550)
dsl: Improve error message when a rule function returns undefined (#3452)
generate: Rename cargo.toml template (#3532)
go: Update parser name in binding files, add to docs (#3547)
lib: A null clock must have tv_nsec be 0 as well (#3372)
lib: Restrict pattern_map optimization when a wildcard step has an immediate first child (#3440)
lib: An empty root node should not precede an empty range (#3450)
lib: Fix api header C++ interop (#3534)
make: Fail properly on Windows (#3418)
rust: Fetch CARGO_MANIFEST_DIR at runtime in build script (#3352)
rust: Fix new clippy warnings (#3491)
test: Multi-grammar corpus tests are now in the repo root (#3342)
wasm: Update test
Performance
Hoist out common subexpressions in satisfies_text_predicates (#3397)
Documentation
Update changelog
Remove duplicate pr # in changelog
Add note for bullet
Fix syntax highlighting unit testing example (#3434)
Add tsserver annotation to example (#3460)
Fix tree cursor documentation (#3324)
Document rust library features (#3395)
Clean up binding & parser lists (#3443)
Refactor
Remove ansi_term dependency (#3387)
Remove difference dependency (#3388)
scripts: Clean up bash scripts (#3231)
Testing
Modernize scanner files (#3340)
Build System and CI
deps: bump wasmtime, cc, and wasmparser (#3529
bindings: Use language version in soname (#3308)
lib: Include the minor in the soname
loader: Make dependencies optional (#1638)
swift: Declare header search path (#3474)
wasm: Don't minify JS (#3380)
wasm: Bump emscripten to 3.1.64 (#3497)
wasm: Support big endian machines (#3492)
zig: Git ignore updated Zig cache directory (#3408)
Other
Swap sprintf() for snprintf() (#3430)
Add .build to gitignore (#3498)
Reset language when resetting wasm store (#3495)
Clone wasm store engine (#3542)
bindings: Fix indent & line endings (#3284)
tree-sitter: update to 0.22.2.
0.22.2
Install bugfix.
0.22.1
Bug Fixes
Cli build script behavior on release
0.22.0
Breaking
Remove top-level corpus dir for tests
The cli will now only look in test/corpus for tests
Remove redundant escape regex & curly brace regex preprocessing (#2838)
bindings: Convert node bindings to NAPI (#3077)
wasm: Make current*, is*, and has* methods properties (#3103)
wasm: Keep API in-line with upstream and start aligning with node (#3149)
Features
Add xtasks to assist with bumping crates (#3065)
Improve language bindings (#2438)
Expose the allocator and array header files for external scanners (#3063)
Add typings for the node bindings
Replace nan with node-addon-api and conditionally print logs
bindings: Add more make targets
bindings: Add peerDependencies for npm
bindings: Add prebuildify to node
bindings: Remove dsl types file (#3126)
node: Type tag the language (#3109)
test: Add attributes for corpus tests
Bug Fixes
Apply some scan-build suggestions (unused assignment/garbage access) (#3056)
Wrap || comparison in parentheses when && is used (#3070)
Ignore unused variables in the array macros (#3083)
binding.cc overwrite should replace PARSER_NAME (#3116)
Don't use __declspec(dllexport) on windows (#3128)
Parsers should export the language function on windows
Allow the regex v flag (#3154)
assertions: Case shouldn't matter for comment node detection
bindings: Editorconfig and setup.py fixes (#3082)
bindings: Insert types after main if it exists (#3122)
bindings: Fix template oversights (#3155)
cli: Only output the sources with --no-bindings (#3123)
generate: Add .npmignore, populate Swift's exclude list (#3085)
generate: Extern allocator functions for the template don't need to be "exported" (#3132)
generate: Camel case name in Cargo.toml description (#3140)
lib: Include api.h so ts_set_allocator is visible (#3092)
Documentation
Add GitHub user and PR info to the changelog
Add css for inline code (#2844)
Document test attributes
Add Ohm language parser
Remove duplicate the's (#3120)
Add discord and matrix badges (#3148)
Refactor
Rename TS_REUSE_ALLOCATOR flag (#3088)
Remove extern/const where possible
array: Use pragma GCC in clang too
bindings: Remove npmignore (#3089)
Testing
Don't use TS_REUSE_ALLOCATOR on Darwin systems (#3087)
Add test case for parse stack merging with incorrect error cost bug (#3098)
Build System and CI
Improve changelog settings (#3064)
Unify crate versions via workspace (#3074)
Update cc to remove annoying debug output (#3075)
Adjust dependabot settings (#3079)
Use c11 everywhere
Add uninstall command
Don't skip tests on failing lint (#3102)
Remove unused deps, bump deps, and bump MSRV to 1.74.1 (#3153)
bindings: Metadata improvements
bindings: Make everything c11 (#3099)
dependabot: Update weekly instead of daily (#3112)
deps: Bump the cargo group with 1 update (#3081)
deps: Bump the cargo group with 1 update (#3097)
deps: Bump deps & lockfile (#3060)
deps: Bump the cargo group with 4 updates (#3134)
lint: Detect if Cargo.lock needs to be updated (#3066)
lint: Make lockfile check quiet (#3078)
swift: Move 'cLanguageStandard' behind 'targets' (#3101)
Other
Make Node.js language bindings context aware (#2841)
They don't have any dynamic global data, so all it takes is just declaring them as such
Fix crash when attempting to load ancient languages via wasm (#3068)
Use workspace dependencies for internal crates like Tree-sitter (#3076)
Remove vendored wasmtime headers (#3084)
When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.
Fix invalid parse stack recursive merging with mismatched error cost (#3086)
Allowing this invalid merge caused an invariant to be violated
later on during parsing, when handling a later error.
Fix regression in subtree_compare (#3111)
docs: Add Ohm language parser (#3114)
Delete binding_files.rs (#3106)
bindings: Consistent wording (#3096)
bindings: Ignore more artifacts (#3119)
tree-sitter: update to 0.20.9. Changes not found.
textproc: add tree-sitter Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited.