diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-17 17:15:20 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-17 17:15:20 +0000 |
commit | fd734e6cc63fb8b8fdced9bc5dea22ab311395b0 (patch) | |
tree | 90d6cab6eb5aa25e8a671e57337afcd2b2d01d35 /lib | |
parent | 580677a9846733c4ec02271fe7e9484c028be06f (diff) |
* lib/irb/ruby-lex.rb (identify_identifier): add '_' to the regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 846c5f24bb..76e3ebac44 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) =~ /[^\x00-\/:-@\[-`{-\x7F]/ + 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) =~ /[^\x00-\/:-@\[-`{-\x7F]/ + while (ch = getc) =~ /[^\x00-\/:-@\[-^`{-\x7F]/ print ":", ch, ":" if RubyLex.debug? token.concat ch end |