1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix r57089

* parse.y (parser_heredoc_identifier): fix multiline here document
  identifier condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-16 22:57:01 +00:00
parent 681c22eb09
commit 9c89812664

View file

@ -6433,7 +6433,7 @@ parser_heredoc_identifier(struct parser_params *parser)
term = c;
while ((c = nextc()) != -1 && c != term) {
if (tokadd_mbchar(c) == -1) return 0;
if (c == '\n') newline = 1;
if (!newline && c == '\n') newline = 1;
else if (newline) newline = 2;
}
if (c == -1) {