Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
All new code requires tests to ensure against regressions
Description of the Change
This adds the ruby next keyword to the list of keywords in the keyword.control scope. I actually noticed several missing keywords compared to the old grammar
But I only really wanted the next keyword at the moment, and didn't want to hurt this PR's chances of getting merged by including other keywords. You can see that the new grammar is missing redo, super, undef, block_given?, defined?, among others. I did just notice that this excerpt is from a different scope, but I would still consider some of these to be control keywords.
Edit by @rsese to add a screenshot and copy/paste code
(1..10).each do |i|
if i % 2 == 0
puts "even"
next
end
puts i
end
Requirements
Description of the Change
This adds the ruby
next
keyword to the list of keywords in thekeyword.control
scope. I actually noticed several missing keywords compared to the old grammarhttps://github.com/atom/language-ruby/blob/8cec2f9c34ec01f518306337cea1c167e150e3c4/grammars/ruby.cson#L154-L157
But I only really wanted the
next
keyword at the moment, and didn't want to hurt this PR's chances of getting merged by including other keywords. You can see that the new grammar is missingredo
,super
,undef
,block_given?
,defined?
, among others. I did just notice that this excerpt is from a different scope, but I would still consider some of these to be control keywords.Edit by @rsese to add a screenshot and copy/paste code
Missing scope:
Alternate Designs
I did not consider any alternate designs.
Benefits
🌈
Possible Drawbacks
None?
Applicable Issues
None.