зеркало из https://github.com/github/ruby.git
[ruby/irb] Accept " " for colorizing "\t" test
(https://github.com/ruby/irb/pull/924) https://github.com/ruby/irb/commit/c8182fa490
This commit is contained in:
Родитель
2e978c2cb3
Коммит
57a262e325
|
@ -99,7 +99,7 @@ module TestIRB
|
|||
"foo %i[bar]" => "foo #{YELLOW}%i[#{CLEAR}#{YELLOW}bar#{CLEAR}#{YELLOW}]#{CLEAR}",
|
||||
"foo :@bar, baz, :@@qux, :$quux" => "foo #{YELLOW}:#{CLEAR}#{YELLOW}@bar#{CLEAR}, baz, #{YELLOW}:#{CLEAR}#{YELLOW}@@qux#{CLEAR}, #{YELLOW}:#{CLEAR}#{YELLOW}$quux#{CLEAR}",
|
||||
"`echo`" => "#{RED}#{BOLD}`#{CLEAR}#{RED}echo#{CLEAR}#{RED}#{BOLD}`#{CLEAR}",
|
||||
"\t" => "\t", # not ^I
|
||||
"\t" => Reline::Unicode.escape_for_print("\t") == ' ' ? ' ' : "\t", # not ^I
|
||||
"foo(*%W(bar))" => "foo(*#{RED}#{BOLD}%W(#{CLEAR}#{RED}bar#{CLEAR}#{RED}#{BOLD})#{CLEAR})",
|
||||
"$stdout" => "#{GREEN}#{BOLD}$stdout#{CLEAR}",
|
||||
"__END__" => "#{GREEN}__END__#{CLEAR}",
|
||||
|
|
Загрузка…
Ссылка в новой задаче