aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-15 07:12:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-15 07:12:46 +0000
commit50b1e640c5df1ba948bda5e23b9df6e8e0fb910d (patch)
tree3707cc104faedd746321b86d3dd101e18b60bf13 /parse.y
parent6b40b69b961a2b2c53389bc2649ed13e9f76012e (diff)
downloadruby-50b1e640c5df1ba948bda5e23b9df6e8e0fb910d.tar.gz
parse.y: should not deent concatenated string
* parse.y (string1): reset heredoc indent fore each string leteral so that concatenated string would not be dedented. [ruby-core:72857] [Bug #11990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index aa37439498..cddd97114b 100644
--- a/parse.y
+++ b/parse.y
@@ -3912,7 +3912,6 @@ strings : string
else {
node = evstr2dstr(node);
}
- heredoc_indent = 0;
$$ = node;
/*%
$$ = $1;
@@ -3935,6 +3934,7 @@ string : tCHAR
string1 : tSTRING_BEG string_contents tSTRING_END
{
heredoc_dedent($2);
+ heredoc_indent = 0;
/*%%%*/
$$ = $2;
/*%