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:
parent
bc3cc9ceec
commit
05314c5dd9
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue