diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-25 01:07:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-25 01:07:35 +0000 |
commit | e5600caf2c5546c3afc78bba33800cfc97e78eee (patch) | |
tree | 9d78c61170f3e164636a4dcd753b0409ff15a3fb /parse.y | |
parent | 8d1dacb2290c4a61a3c92769e5cb1814e09858b4 (diff) | |
download | ruby-e5600caf2c5546c3afc78bba33800cfc97e78eee.tar.gz |
keep line number after unterminated string literal
* parse.y (parser_parse_string): keep line number even after an
unterminated string literal. it does not matter in the parser,
ripper needs this value after this error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -6207,7 +6207,6 @@ parser_parse_string(struct parser_params *parser, NODE *quote) pushback(c); if (tokadd_string(func, term, paren, "e->nd_nest, &enc) == -1) { - ruby_sourceline = nd_line(quote); if (func & STR_FUNC_REGEXP) { if (parser->eofp) compile_error(PARSER_ARG "unterminated regexp meets end of file"); |