File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7456,6 +7456,7 @@ def deconstruct_keys(_keys)
7456
7456
{
7457
7457
beginning : beginning ,
7458
7458
ending : ending ,
7459
+ options : options ,
7459
7460
parts : parts ,
7460
7461
location : location ,
7461
7462
comments : comments
@@ -7490,18 +7491,22 @@ def format(q)
7490
7491
end
7491
7492
7492
7493
q . text ( "}" )
7493
- q . text ( ending [ 1 .. ] )
7494
+ q . text ( options )
7494
7495
end
7495
7496
else
7496
7497
q . group do
7497
7498
q . text ( "/" )
7498
7499
q . format_each ( parts )
7499
7500
q . text ( "/" )
7500
- q . text ( ending [ 1 .. ] )
7501
+ q . text ( options )
7501
7502
end
7502
7503
end
7503
7504
end
7504
7505
7506
+ def options
7507
+ ending [ 1 ..]
7508
+ end
7509
+
7505
7510
private
7506
7511
7507
7512
def include? ( pattern )
Original file line number Diff line number Diff line change @@ -738,6 +738,7 @@ def visit_regexp_end(node)
738
738
def visit_regexp_literal ( node )
739
739
node ( node , "regexp_literal" ) do
740
740
list ( "parts" , node . parts )
741
+ field ( "options" , node . options )
741
742
comments ( node )
742
743
end
743
744
end
You can’t perform that action at this time.
0 commit comments