diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index a14ac8a275..4121fa1f7c 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -152,6 +152,7 @@ class RubyLex end begin # check if parser error are available + verbose, $VERBOSE = $VERBOSE, nil RubyVM::InstructionSequence.compile(code) rescue SyntaxError => e case e.message @@ -199,6 +200,8 @@ class RubyLex # method / f / return false end + ensure + $VERBOSE = verbose end last_lex_state = @tokens.last[3] |