Skip to content

Commit

Permalink
fixed recently introduce bug in ruby-lex.rb
Browse files Browse the repository at this point in the history
could not compile x/3 in methods defined in irb
  • Loading branch information
brentr committed Aug 6, 2016
1 parent 52cfb56 commit 6490152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/irb/ruby-lex.rb
Expand Up @@ -2,7 +2,7 @@
# irb/ruby-lex.rb - ruby lexcal analyzer
# $Release Version: 0.9.5$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
# revised 12/23/15 brent@mbari.org to tokenize unknown characters
# revised 8/5/16 brent@mbari.org to tokenize unknown characters
#
# --
#
Expand Down Expand Up @@ -282,6 +282,7 @@ def token
begin
raise SyntaxError, "Invalid (Unicode?) char #{getc.dump}" unless
tk = @OP.match(self)
@space_seen = tk.kind_of?(TkSPACE)
rescue SyntaxError
raise if @exception_on_syntax_error
tk = TkError.new(@seek, @line_no, @char_no)
Expand Down

0 comments on commit 6490152

Please sign in to comment.