Repository navigation
Conversation
Prevent the external scanner from scanning template-string content
during error recovery. Tree-sitter enables all external tokens in
recovery states, but template content and automatic semicolons are never
simultaneously valid during normal parsing.
Previously, a syntax error could cause the template scanner to consume
subsequent declarations until an unrelated `${` or backtick. For
example, a non-null assertion or `satisfies` expression followed by JSX
containing the literal string '${a}' could absorb the following
component into a large ERROR node, breaking highlighting and navigation.
These are present in the Solid v2 TSRX template but are not supported by the grammar, so editors using the tree-sitter grammar for syntax highlighting would leave them unhighlighted.
|
@sin-ack is attempting to deploy a commit to the Ripple Team Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
I couldn't push to your branch as you didn't give us the permission "Allow edits from maintainers" (please add it next time) Created a new pr #132 - your commits were copied. |
Contributor
|
Merged #132, thank you! |
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These are present in the Solid v2 TSRX template but are not supported by the grammar, so editors using the tree-sitter grammar for syntax highlighting would leave them unhighlighted.
This PR also includes a fix for error recovery when template strings are present later in the file.
AI Disclosure
I used GPT-6 Astra to generate the fix. I wrote the commit descriptions myself. I verified that every commit passes
pnpm build && pnpm test.