summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-11-10 13:54:44 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-11-10 13:54:44 -0800
commitfcd9bc28e3d7d301bcdf6eea8ffa25c0c3ec184f (patch)
tree71f8cc39287ac06aadbd6bfdb130b0ef30948088 /lib/irb
parent25c53a8eec4f73f4d0d127144b24bf68218149e3 (diff)
qsymbols and symbols should be colored as Symbol
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/color.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb
index 92bbd9ebd5..3ce628ff24 100644
--- a/lib/irb/color.rb
+++ b/lib/irb/color.rb
@@ -205,7 +205,7 @@ module IRB # :nodoc:
def scan_token(token)
prev_state = @stack.last
case token
- when :on_symbeg
+ when :on_symbeg, :on_symbols_beg, :on_qsymbols_beg
@stack << true
when :on_ident, :on_op, :on_const, :on_ivar, :on_cvar, :on_gvar, :on_kw
if @stack.last # Pop only when it's Symbol