Skip to content

Commit

Permalink
* parse.y (literal_concat_string): non-string last expression in
Browse files Browse the repository at this point in the history
  #{} was ignored when followed by literal.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jun 26, 2002
1 parent 2dcc590 commit d32cb4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Thu Jun 27 08:28:18 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>

* parse.y (literal_concat_string): non-string last expression in
#{} was ignored when followed by literal.

Wed Jun 26 15:40:00 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>

* parse.y (words, qwords): word list literal rules.
Expand Down
5 changes: 3 additions & 2 deletions parse.y
Expand Up @@ -4359,7 +4359,7 @@ literal_concat_string(head, tail, str)
NODE *head, *tail;
VALUE str;
{
NODE *last = head, *last1 = 0;
NODE *last = head, *last1 = 0, *prev = 0;

for (;;) {
switch (nd_type(last)) {
Expand All @@ -4368,10 +4368,11 @@ literal_concat_string(head, tail, str)
break;
case NODE_BLOCK:
case NODE_DSTR:
if (!last1) last1 = prev;
prev = last;
while (last->nd_next) {
last = last->nd_next;
}
if (!last1) last1 = last;
last = last->nd_head;
break;
case NODE_STR:
Expand Down

0 comments on commit d32cb4b

Please sign in to comment.