summaryrefslogtreecommitdiff
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
commitc8348d0cfa13471e190a412fb2e0b8177bd90941 (patch)
tree96e0c89ade172375372a6ddebb58158c201b6750 /parse.y
parentc12af76763a1bff53ed77bc4d236f441d8679880 (diff)
downloadruby-c8348d0cfa13471e190a412fb2e0b8177bd90941.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());