Skip to content

Incorrect Switching Ruby multiline block with comment and Ruby single Line block #122

Description

@ceclinux

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions