summaryrefslogtreecommitdiff
path: root/lib/irb/color.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-11-10 13:33:23 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-11-10 13:33:23 -0800
commitb5996b25ae8ff7e7961fea245c5ea8476b029134 (patch)
tree283f25b1791fae8a987492aa174e7636ebafb46f /lib/irb/color.rb
parent6e70fa49b111e2a2839297b057a3df354cae265a (diff)
Colorize string quotes as bold
like pry
Diffstat (limited to 'lib/irb/color.rb')
-rw-r--r--lib/irb/color.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb
index 7a1d0c30ce..9436c19b72 100644
--- a/lib/irb/color.rb
+++ b/lib/irb/color.rb
@@ -30,7 +30,7 @@ module IRB # :nodoc:
# backtick and regexp as red (string's color, because they're sharing tokens).
TOKEN_SEQ_EXPRS = {
on_CHAR: [[BLUE, BOLD], ALL],
- on_backtick: [[RED], ALL],
+ on_backtick: [[RED, BOLD], ALL],
on_comment: [[BLUE, BOLD], ALL],
on_const: [[BLUE, BOLD, UNDERLINE], ALL],
on_embexpr_beg: [[RED], ALL],
@@ -45,17 +45,17 @@ module IRB # :nodoc:
on_int: [[BLUE, BOLD], ALL],
on_kw: [[GREEN], ALL],
on_label: [[MAGENTA], ALL],
- on_label_end: [[RED], ALL],
- on_qsymbols_beg: [[RED], ALL],
- on_qwords_beg: [[RED], ALL],
+ on_label_end: [[RED, BOLD], ALL],
+ on_qsymbols_beg: [[RED, BOLD], ALL],
+ on_qwords_beg: [[RED, BOLD], ALL],
on_rational: [[BLUE, BOLD], ALL],
on_regexp_beg: [[RED, BOLD], ALL],
on_regexp_end: [[RED, BOLD], ALL],
on_symbeg: [[YELLOW], ALL],
- on_tstring_beg: [[RED], ALL],
+ on_tstring_beg: [[RED, BOLD], ALL],
on_tstring_content: [[RED], ALL],
- on_tstring_end: [[RED], ALL],
- on_words_beg: [[RED], ALL],
+ on_tstring_end: [[RED, BOLD], ALL],
+ on_words_beg: [[RED, BOLD], ALL],
on_parse_error: [[RED, REVERSE], ALL],
compile_error: [[RED, REVERSE], ALL],
}