From 716ce65138a8faf2e1226eafe42b2ffb39ebfd67 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 20 Apr 2017 11:07:00 +0000 Subject: ruby-lex.rb: merge regexps git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/ruby-lex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index ca01662eee..3329c02284 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -406,7 +406,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 == "-" || c == "~") + if /[-~"'`\w]/ =~ c tk = identify_here_document end end -- cgit v1.2.3