diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 12:32:35 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 12:32:35 +0000 |
| commit | e9bf3bce08d07f678f9fce7f276fe039f77db429 (patch) | |
| tree | 7cb18a2c775080e2c8bc89bfb534c58c77f25f56 /lib/irb | |
| parent | 16270be8616e4fb68092d5e85b57a1d64815103d (diff) | |
| download | ruby-e9bf3bce08d07f678f9fce7f276fe039f77db429.tar.gz ruby-e9bf3bce08d07f678f9fce7f276fe039f77db429.tar.xz ruby-e9bf3bce08d07f678f9fce7f276fe039f77db429.zip | |
* lib/date/format.rb: suppressed a warning.
* lib/irb/ruby-lex.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
| -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 c758f1dcf..b49337c1c 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -407,7 +407,7 @@ class RubyLex if @lex_state != EXPR_END && @lex_state != EXPR_CLASS && (@lex_state != EXPR_ARG || @space_seen) c = peek(0) - if /\S/ =~ c && (/["'`]/ =~ c || /[\w_]/ =~ c || c == "-") + if /\S/ =~ c && (/["'`]/ =~ c || /\w/ =~ c || c == "-") tk = identify_here_document end end @@ -728,7 +728,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) =~ /\w/ t = identify_identifier end printf "MATCH: end %s: %s\n", op, io.inspect if RubyLex.debug? |
