diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 37261bb79c..846c5f24bb 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -727,7 +727,7 @@ class RubyLex printf "MATCH: start %s: %s\n", op, io.inspect if RubyLex.debug? if peek(0) =~ /[0-9]/ t = identify_number - elsif peek(0) =~ /\w/ + elsif peek(0) =~ /[^\x00-\/:-@\[-`{-\x7F]/ t = identify_identifier end printf "MATCH: end %s: %s\n", op, io.inspect if RubyLex.debug? @@ -770,7 +770,7 @@ class RubyLex end end - while (ch = getc) =~ /\w|_/ + while (ch = getc) =~ /[^\x00-\/:-@\[-`{-\x7F]/ print ":", ch, ":" if RubyLex.debug? token.concat ch end |