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

Return nil for all syntax errors #136

Merged
merged 1 commit into from
Jul 30, 2020
Merged

Conversation

marcandre
Copy link
Member

Currently returns nil for most syntax errors, except it returns false when end of source is reached. This PR fixes this, but I couldn't find any tests, so I opened #135.

marcandre referenced this pull request in rubocop/rubocop-ast Jul 22, 2020
Fixes #6945.

By convention, a year after Ruby became an EOL, it seems that the old
Ruby version support has been dropped. I'm not sure if it's good to drop
Ruby 2.3 support, but it's good time to drop Ruby 2.2 support.
@marcandre marcandre merged commit 5c49077 into ruby:master Jul 30, 2020
@marcandre marcandre deleted the nil_to_the_rescue branch July 30, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant