diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 22:32:28 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 22:32:28 -0700 |
commit | aaf6c678d272d4487179b7ae0b03990ac6b2aff5 (patch) | |
tree | 803a92aaf8a2b084a07a9c6d139a4ecc533c5829 /test/irb | |
parent | 52b09fcee1b170ad3be7d26b885b8a509c7ba006 (diff) | |
download | ruby-aaf6c678d272d4487179b7ae0b03990ac6b2aff5.tar.gz |
Handle keyword symbol in IRB::Color::SymbolState
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_color.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb index eb30840bf1..3ba0c4c1ac 100644 --- a/test/irb/test_color.rb +++ b/test/irb/test_color.rb @@ -49,6 +49,7 @@ module TestIRB "[__FILE__, __LINE__]" => "[#{CYAN}#{BOLD}__FILE__#{CLEAR}, #{CYAN}#{BOLD}__LINE__#{CLEAR}]", ":self" => "#{YELLOW}:#{CLEAR}#{YELLOW}self#{CLEAR}", ":class" => "#{YELLOW}:#{CLEAR}#{YELLOW}class#{CLEAR}", + "[:end, 2]" => "[#{YELLOW}:#{CLEAR}#{YELLOW}end#{CLEAR}, #{BLUE}#{BOLD}2#{CLEAR}]", "[:>, 3]" => "[#{YELLOW}:#{CLEAR}#{YELLOW}>#{CLEAR}, #{BLUE}#{BOLD}3#{CLEAR}]", ":Hello ? world : nil" => "#{YELLOW}:#{CLEAR}#{YELLOW}Hello#{CLEAR} ? world : #{CYAN}#{BOLD}nil#{CLEAR}", 'raise "foo#{bar}baz"' => "raise #{RED}\"#{CLEAR}#{RED}foo#{CLEAR}#{RED}\#{#{CLEAR}bar#{RED}}#{CLEAR}#{RED}baz#{CLEAR}#{RED}\"#{CLEAR}", |