Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore external tokens that are zero-length and extra #4213

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

maxbrunsfeld
Copy link
Contributor

This prevents buggy external scanners from causing infinite loops, which is a very bad failure mode.

@maxbrunsfeld maxbrunsfeld enabled auto-merge (squash) February 17, 2025 23:07
@maxbrunsfeld maxbrunsfeld merged commit dedcc52 into master Feb 17, 2025
13 checks passed
@maxbrunsfeld maxbrunsfeld deleted the ignore-empty-extra-tokens branch February 17, 2025 23:07
@tree-sitter-ci-bot
Copy link

Git push to origin failed for release-0.24 with exitcode 1

github-actions bot pushed a commit that referenced this pull request Feb 17, 2025
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.24:

github-actions bot pushed a commit that referenced this pull request Feb 17, 2025
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

maxbrunsfeld added a commit that referenced this pull request Feb 18, 2025
Co-authored-by: Anthony <[email protected]>
(cherry picked from commit dedcc52)

Co-authored-by: Max Brunsfeld <[email protected]>
maxbrunsfeld added a commit that referenced this pull request Feb 18, 2025
Co-authored-by: Anthony <[email protected]>
(cherry picked from commit dedcc52)

Co-authored-by: Max Brunsfeld <[email protected]>
maxbrunsfeld added a commit to zed-industries/zed that referenced this pull request Feb 18, 2025
…25054)

Closes #24742
Closes #24632

This PR bumps Tree-sitter to bring in bug fixes:
* tree-sitter/tree-sitter#4218
* tree-sitter/tree-sitter#4213
* tree-sitter/tree-sitter#4210

I've also bumped Wasmtime and wit-bindgen, since the new Tree-sitter
uses a newer wasmtime.

Release Notes:

- Fixed a parsing bug that caused memory leaks and crashes when using
the Ansible extension

---------

Co-authored-by: Anthony <[email protected]>
Co-authored-by: Anthony Eid <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant