mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby-lex.rb: merge regexps
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5069122ab6
commit
716ce65138
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue