We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've found some unexpected indentations such as following examples.
foo = "bar" if /^.*(foo)/.match("foo") case foo when /1/ puts "foo" when /2/ puts "bar" end end
foo = "bar" if /^.*(foo)/.match("foo") case foo # Not indented. when /1/ puts "foo" when /2/ # Not unindented. puts "bar" # Not indented. end end
foo = "bar" if /^.*(foo)/.match("foo") case foo when 1 puts "foo" when 2 puts "bar" end end
In this case, no indent will be executed.
Meanwhile, it will be indented correctly if the codes are as following.
foo = "bar" if /^.*(foo)bar/.match("foo") # Added a string after parentheses case foo when 1 puts "foo" when 2 puts "bar" end end
foo = "bar" if /^.*(foo)bar/.match("foo") case foo when 1 puts "foo" when 2 puts "bar" end end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've found some unexpected indentations such as following examples.
Example 1
Before
After
Example 2
Before
In this case, no indent will be executed.
Example 3
Meanwhile, it will be indented correctly if the codes are as following.
Before
After
The text was updated successfully, but these errors were encountered: