Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Conversation

cristianoc
Copy link
Contributor

See rescript-lang/rescript-vscode#416 for examples where parser recovery goes wrong in template expressions.
Basically, if the token after "." is consumed in recovery, the entire template expression is eaten up and never recovers.

This PR changes error recovery to not consume the token after Dot so the parser can recover properly inside a template.

See rescript-lang/rescript-vscode#416 for examples where parser recovery goes wrong in template expressions.
Basically, if the token after "." is consumed in recovery, the entire template expression is eaten up and never recovers.

This PR changes error recovery to not consume the token after Dot so the parser can recover properly inside a template.
cristianoc added a commit to rescript-lang/rescript-vscode that referenced this pull request May 12, 2022
@cristianoc cristianoc merged commit eae2a01 into master May 13, 2022
@cristianoc cristianoc deleted the recoveryAfterDot branch May 13, 2022 05:37
cristianoc added a commit to rescript-lang/rescript-vscode that referenced this pull request May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant