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

Fix symbol handle in args of yield/super/defined? #493

Merged
merged 2 commits into from
Aug 15, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Aug 13, 2017

In : token processing, TkSYMBEG is generated only when @lex_state is not :EXPR_END. But yield/super/defined? is :EXPR_END. So if first arg in those is :, it becomes TkCOLON as distinct from TkSYMBEG.

This Pull Request fixes it.

In ":" token processing,
TkSYMBEG is generated
only when @lex_state is not :EXPR_END.
But yield/super/defined? is :EXPR_END.
So if first arg in those is ":",
it becomes TkCOLON as distinct from TkSYMBEG.
This commit fixes it.
@hsbt hsbt merged commit ef2cfbc into ruby:master Aug 15, 2017
@aycabta aycabta deleted the fix-symbol-handling-in-args-of-yield branch August 15, 2017 13:33
@aycabta
Copy link
Member Author

aycabta commented Aug 15, 2017

Thanks 💗 a 💓 lot!

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.

2 participants