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 /lib/irb/color.rb | |
parent | 52b09fcee1b170ad3be7d26b885b8a509c7ba006 (diff) | |
download | ruby-aaf6c678d272d4487179b7ae0b03990ac6b2aff5.tar.gz |
Handle keyword symbol in IRB::Color::SymbolState
Diffstat (limited to 'lib/irb/color.rb')
-rw-r--r-- | lib/irb/color.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 2439bc792e..51facaa476 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -136,7 +136,7 @@ module IRB # :nodoc: case token when :on_symbeg @stack << true - when :on_ident, :on_op, :on_const, :on_ivar + when :on_ident, :on_op, :on_const, :on_ivar, :on_kw if @stack.last # Pop only when it's Symbol @stack.pop return prev_state |