-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from ruby-formatter/ruby-3.3
Support Ruby 3.3
- Loading branch information
Showing
8 changed files
with
94 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,44 @@ | ||
#~# ORIGINAL break | ||
loop do | ||
|
||
break | ||
end | ||
|
||
#~# EXPECTED | ||
break | ||
loop do | ||
break | ||
end | ||
|
||
#~# ORIGINAL | ||
loop do | ||
|
||
break 1 | ||
end | ||
|
||
#~# EXPECTED | ||
break 1 | ||
loop do | ||
break 1 | ||
end | ||
|
||
#~# ORIGINAL | ||
|
||
loop do | ||
break 1 , 2 | ||
end | ||
|
||
#~# EXPECTED | ||
break 1, 2 | ||
loop do | ||
break 1, 2 | ||
end | ||
|
||
#~# ORIGINAL | ||
loop do | ||
|
||
break 1 , | ||
2 | ||
end | ||
|
||
#~# EXPECTED | ||
break 1, | ||
2 | ||
loop do | ||
break 1, | ||
2 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,46 @@ | ||
#~# ORIGINAL next | ||
loop do | ||
|
||
next | ||
end | ||
|
||
#~# EXPECTED | ||
next | ||
loop do | ||
next | ||
end | ||
|
||
#~# ORIGINAL | ||
loop do | ||
|
||
next 1 | ||
end | ||
|
||
#~# EXPECTED | ||
next 1 | ||
loop do | ||
next 1 | ||
end | ||
|
||
#~# ORIGINAL | ||
loop do | ||
|
||
next 1 , 2 | ||
end | ||
|
||
#~# EXPECTED | ||
next 1, 2 | ||
loop do | ||
next 1, 2 | ||
end | ||
|
||
#~# ORIGINAL | ||
loop do | ||
|
||
next 1 , | ||
2 | ||
end | ||
|
||
#~# EXPECTED | ||
next 1, | ||
2 | ||
loop do | ||
next 1, | ||
2 | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#~# ORIGINAL redo | ||
loop do | ||
|
||
redo | ||
end | ||
|
||
#~# EXPECTED | ||
redo | ||
loop do | ||
redo | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#~# ORIGINAL retry | ||
begin | ||
rescue | ||
|
||
retry | ||
end | ||
|
||
#~# EXPECTED | ||
retry | ||
begin | ||
rescue | ||
retry | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,56 @@ | ||
#~# ORIGINAL yield | ||
def foo | ||
|
||
yield | ||
end | ||
|
||
#~# EXPECTED | ||
yield | ||
def foo | ||
yield | ||
end | ||
|
||
#~# ORIGINAL | ||
def foo | ||
|
||
yield 1 | ||
end | ||
|
||
#~# EXPECTED | ||
yield 1 | ||
def foo | ||
yield 1 | ||
end | ||
|
||
#~# ORIGINAL | ||
def foo | ||
|
||
yield 1 , 2 | ||
end | ||
|
||
#~# EXPECTED | ||
yield 1, 2 | ||
def foo | ||
yield 1, 2 | ||
end | ||
|
||
#~# ORIGINAL | ||
def foo | ||
|
||
yield 1 , | ||
2 | ||
end | ||
|
||
#~# EXPECTED | ||
yield 1, | ||
2 | ||
def foo | ||
yield 1, | ||
2 | ||
end | ||
|
||
#~# ORIGINAL | ||
def foo | ||
|
||
yield( 1 , 2 ) | ||
end | ||
|
||
#~# EXPECTED | ||
yield(1, 2) | ||
def foo | ||
yield(1, 2) | ||
end |