mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (parse_quotedwords): %w should allow parenthesis escape.
* parse.y (parse_qstring): %q should allow terminator escape. * re.c (rb_reg_options): new method to give an option values. * parse.y (cond0): disable special treating of integer literal in conditional unless option -e is supplied. changes current behavior. experimental. * parse.y (cond0): give warning for string/integer literals and dot operators in conditionals unless option -e is supplied. * re.c (rb_reg_equal): all option flags should be same to be equal. * error.c (Init_Exception): make Interrupt a subclass of SignalException. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b576f57aa0
commit
ed520cf6e9
19 changed files with 196 additions and 61 deletions
|
@ -9,11 +9,12 @@
|
|||
|
||||
for k,v in ENV
|
||||
next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k
|
||||
v = v.gsub(/\\/) {|s| '\\'+s}
|
||||
eval <<EOS
|
||||
$#{k} = %q!#{v}!
|
||||
$#{k} = %q\0#{v}\0
|
||||
trace_var "$#{k}", proc{|v|
|
||||
ENV[%q!#{k}!] = v;
|
||||
$#{k} = %q!#{v}!
|
||||
ENV[%q!#{k}!] = v
|
||||
$#{k} = v
|
||||
if v == nil
|
||||
untrace_var "$#{k}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue