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

here doc line number

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@41 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-01-22 07:57:42 +00:00
parent bc3cc9ceec
commit 05314c5dd9

View file

@ -2046,6 +2046,7 @@ here_document(term)
free(eos);
return 0;
}
sourceline++;
if (strncmp(eos, RSTRING(line)->ptr, len) == 0 &&
(RSTRING(line)->ptr[len] == '\n' ||
RSTRING(line)->ptr[len] == '\r')) {
@ -2054,7 +2055,6 @@ here_document(term)
lex_pbeg = lex_p = RSTRING(line)->ptr;
lex_pend = lex_p + RSTRING(line)->len;
sourceline++;
switch (parse_string(term, '\n')) {
case STRING:
case XSTRING: