aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/color.rb
diff options
context:
space:
mode:
authorNobuhiro IMAI <nov@yo.rim.or.jp>2020-12-29 16:07:20 +0900
committerGitHub <noreply@github.com>2020-12-28 23:07:20 -0800
commit9b7ceb676540d0061b2a31fee2da84ae31f93bae (patch)
treeff0a7e1eb66f51f41ad3d2a612eb636a1d72e106 /lib/irb/color.rb
parentc0a2d322c692228a7574c39c7e173da4af0f34ea (diff)
downloadruby-9b7ceb676540d0061b2a31fee2da84ae31f93bae.tar.gz
irb: add more syntax errors colorizing support (#3967)
Diffstat (limited to 'lib/irb/color.rb')
-rw-r--r--lib/irb/color.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb
index 56f5c4c625..e3f4a1d475 100644
--- a/lib/irb/color.rb
+++ b/lib/irb/color.rb
@@ -60,6 +60,10 @@ module IRB # :nodoc:
on_words_beg: [[RED, BOLD], ALL],
on_parse_error: [[RED, REVERSE], ALL],
compile_error: [[RED, REVERSE], ALL],
+ on_assign_error: [[RED, REVERSE], ALL],
+ on_alias_error: [[RED, REVERSE], ALL],
+ on_class_name_error:[[RED, REVERSE], ALL],
+ on_param_error: [[RED, REVERSE], ALL],
}
rescue NameError
# Give up highlighting Ripper-incompatible older Ruby