mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y [ripper] (regexp): dispatch regexp option. [ruby-Bugs:1688]
* ext/ripper/lib/core.rb: regenerated (interface changed). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af759b81a1
commit
dd82fb6393
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Thu Apr 14 19:05:06 2005 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* parse.y [ripper] (regexp): dispatch regexp option.
|
||||||
|
[ruby-Bugs:1688]
|
||||||
|
|
||||||
|
* ext/ripper/lib/core.rb: regenerated (interface changed).
|
||||||
|
|
||||||
Thu Apr 14 18:59:43 2005 Minero Aoki <aamine@loveruby.net>
|
Thu Apr 14 18:59:43 2005 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/fileutils.rb (remove_file): ignore exceptions caused by
|
* lib/fileutils.rb (remove_file): ignore exceptions caused by
|
||||||
|
|
|
@ -97,7 +97,7 @@ class Ripper
|
||||||
:qwords_add => 2,
|
:qwords_add => 2,
|
||||||
:qwords_new => 0,
|
:qwords_new => 0,
|
||||||
:redo => 0,
|
:redo => 0,
|
||||||
:regexp_literal => 1,
|
:regexp_literal => 2,
|
||||||
:rescue => 4,
|
:rescue => 4,
|
||||||
:rescue_mod => 2,
|
:rescue_mod => 2,
|
||||||
:restparam => 1,
|
:restparam => 1,
|
||||||
|
@ -525,7 +525,7 @@ class Ripper
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def on_regexp_literal(a)
|
def on_regexp_literal(a, b)
|
||||||
a
|
a
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -3551,7 +3551,7 @@ regexp : tREGEXP_BEG xstring_contents tREGEXP_END
|
||||||
}
|
}
|
||||||
$$ = node;
|
$$ = node;
|
||||||
/*%
|
/*%
|
||||||
$$ = dispatch1(regexp_literal, $2);
|
$$ = dispatch2(regexp_literal, $2, $3);
|
||||||
%*/
|
%*/
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue