aboutsummaryrefslogtreecommitdiffstats
path: root/test/irb/test_color.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-01 21:09:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-02 10:52:53 +0900
commit79af8ce6d7f46e7e79180dbd6bef6681c1329bd9 (patch)
treef1aed1fd812e764f947a9af1aebda718a901e016 /test/irb/test_color.rb
parentecfa8dcdbaf60cbe878389439de9ac94bc82e034 (diff)
downloadruby-79af8ce6d7f46e7e79180dbd6bef6681c1329bd9.tar.gz
[ruby/irb] Colorize `__END__` as keyword
https://github.com/ruby/irb/commit/9b84018311
Diffstat (limited to 'test/irb/test_color.rb')
-rw-r--r--test/irb/test_color.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb
index 9976008124..a28ae06117 100644
--- a/test/irb/test_color.rb
+++ b/test/irb/test_color.rb
@@ -66,6 +66,7 @@ module TestIRB
"\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}",
}
# specific to Ruby 2.7+