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

Allow empty parens in a string to be safely parsed #122

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dkinzer
Copy link
Member

@dkinzer dkinzer commented Oct 5, 2022

This change allows an empty set of parens, (), to be in a string and to be parsed as a token. Prior to this change, and empty set of parens would be parsed as a list with no contents which could not be successfully parsed, but instead results in a error as described in #101.

This change fixes issue #101.

This is originally some work by @bibliotechy in this PR which I merged without rebasing and it had issues that needed to be fixed before it could be merged: #112

@dkinzer dkinzer force-pushed the handle-empty-parens branch from 17973c3 to c4a228c Compare October 5, 2022 19:56
@dkinzer dkinzer marked this pull request as draft October 6, 2022 13:54
@dkinzer
Copy link
Member Author

dkinzer commented Oct 6, 2022

I cannot reproduce the issue locally using ruby version 3.1.2p20. I think this error is CI specific issue.

This change allows an empty set of parens, `()`, to be in a string and to be parsed as a token. Prior to this change, and empty set of parens would be parsed as a list with no contents which could not be successfully parsed, but instead results in a error as described in #101.

This change fixes issue #101.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant