aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-16 12:16:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-16 12:16:59 +0000
commit621a6fe61afecfb26b453779e127860dfe897662 (patch)
tree96e0c89ade172375372a6ddebb58158c201b6750 /parse.y
parent7fc586f7d769dbe797673b8d688a5a7b36870c31 (diff)
downloadruby-621a6fe61afecfb26b453779e127860dfe897662.tar.gz
parse.y: should not deent concatenated string
* parse.y (xstring): reset heredoc indent after dedenting, so that following string literal would not be dedented. [ruby-core:72857] [Bug #11990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index cddd97114b..57cd313cc5 100644
--- a/parse.y
+++ b/parse.y
@@ -3950,6 +3950,7 @@ xstring : tXSTRING_BEG xstring_contents tSTRING_END
/*%
%*/
heredoc_dedent($2);
+ heredoc_indent = 0;
/*%%%*/
if (!node) {
node = NEW_XSTR(STR_NEW0());