ruby-changes:46303
From: nobu <ko1@a...>
Date: Thu, 20 Apr 2017 20:07:07 +0900 (JST)
Subject: [ruby-changes:46303] nobu:r58417 (trunk): ruby-lex.rb: merge regexps
nobu 2017-04-20 20:07:00 +0900 (Thu, 20 Apr 2017) New Revision: 58417 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58417 Log: ruby-lex.rb: merge regexps Modified files: trunk/lib/irb/ruby-lex.rb Index: lib/irb/ruby-lex.rb =================================================================== --- lib/irb/ruby-lex.rb (revision 58416) +++ lib/irb/ruby-lex.rb (revision 58417) @@ -406,7 +406,7 @@ class RubyLex https://github.com/ruby/ruby/blob/trunk/lib/irb/ruby-lex.rb#L406 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 == "-" || c == "~") + if /[-~"'`\w]/ =~ c tk = identify_here_document end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/