diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/color.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/irb/color.rb b/lib/irb/color.rb index aa4c60aa12..b53cc75035 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -66,9 +66,11 @@ module IRB # :nodoc: class Lexer < Ripper::Lexer if method_defined?(:token) - def on_parse_error(mesg) + def on_error(mesg) @buf.push Elem.new([lineno(), column()], __callee__, token(), state()) end + alias on_parse_error on_error + alias compile_error on_error end end |