From e9bf3bce08d07f678f9fce7f276fe039f77db429 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 16 Aug 2009 12:32:35 +0000 Subject: * 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 --- lib/irb/ruby-lex.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/irb') 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? -- cgit