Incorrect switching between Ruby multiline block with comment and Ruby single Line block
Expected behavior
['a'].each do |t|
# comment here
p t
end
press gJ
# comment here;
['a'].each { |t| p t }
or maybe tell the user switch failed
Steps to reproduce the problem
['a'].each do |t|
# comment here
p t
end
press gJ
['a'].each { |t| # comment here; p t }
Ruby doesn't have single line comment, that this conversion will raise a syntax error