Skip to content

Conversation

@schneems
Copy link
Collaborator

When a line definition ends in if/unless then it does not need an accompanying "end" this can be detected when lexing: https://github.com/ruby/ruby/blob/06b44f819eb7b5ede1ff69cecb25682b56a1d60c/lib/irb/ruby-lex.rb#L374-L375

@schneems schneems force-pushed the schneems/trailing-if branch from a2742af to b1fa8a7 Compare December 28, 2020 21:22
When a line definition ends in if/unless then it does not need an accompanying "end" this can be detected when lexing: https://github.com/ruby/ruby/blob/06b44f819eb7b5ede1ff69cecb25682b56a1d60c/lib/irb/ruby-lex.rb#L374-L375
@schneems schneems force-pushed the schneems/trailing-if branch from b1fa8a7 to a006b2c Compare December 28, 2020 21:23
@schneems schneems merged commit 72f5b09 into main Dec 28, 2020
@schneems schneems deleted the schneems/trailing-if branch December 28, 2020 21:24
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.

2 participants