From d9b9d8743892c3b544fd4e40bbc7a6df18e65490 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 Jan 2004 07:21:40 +0000 Subject: * parse.y (string_content): reset lexical states at the beginning of string contents. [ruby-list:39061] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 6bf656fe2..1de67b58f 100644 --- a/parse.y +++ b/parse.y @@ -2063,10 +2063,14 @@ string_content : tSTRING_CONTENT $$ = lex_strterm; lex_strterm = 0; lex_state = EXPR_BEG; + COND_PUSH(0); + CMDARG_PUSH(0); } compstmt '}' { lex_strterm = $2; + COND_LEXPOP(); + CMDARG_LEXPOP(); if (($$ = $3) && nd_type($$) == NODE_NEWLINE) { $$ = $$->nd_next; rb_gc_force_recycle((VALUE)$3); -- cgit