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

Slice source text in SyntaxException #5493

Merged
merged 7 commits into from Dec 30, 2022

Conversation

PascalSenn
Copy link
Member

@PascalSenn PascalSenn commented Oct 20, 2022

We were allocating a string with the whole source text in case of a syntax exception.

This is a problem when we parse SDLs

This PR allocates at max a string of 512 characters and also provides the offset to the original position

@michaelstaib
Copy link
Member

Give me a ping when you have removed the source text.

@PascalSenn
Copy link
Member Author

@michaelstaib done

@michaelstaib michaelstaib merged commit f9bda8e into main Dec 30, 2022
@michaelstaib michaelstaib deleted the pse/reduce-syntax-error-complexity branch December 30, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants