* parse.y (string_content): reset lexical states at the beginning of
string contents. [ruby-list:39061] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
002517aba8
commit
48b24fe536
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jan 22 16:21:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (string_content): reset lexical states at the beginning of
|
||||||
|
string contents. [ruby-list:39061]
|
||||||
|
|
||||||
Thu Jan 22 01:46:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Jan 22 01:46:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (newline_node): do not use NODE_NEWLINE node anymore,
|
* parse.y (newline_node): do not use NODE_NEWLINE node anymore,
|
||||||
|
4
parse.y
4
parse.y
@ -2067,10 +2067,14 @@ string_content : tSTRING_CONTENT
|
|||||||
$<node>$ = lex_strterm;
|
$<node>$ = lex_strterm;
|
||||||
lex_strterm = 0;
|
lex_strterm = 0;
|
||||||
lex_state = EXPR_BEG;
|
lex_state = EXPR_BEG;
|
||||||
|
COND_PUSH(0);
|
||||||
|
CMDARG_PUSH(0);
|
||||||
}
|
}
|
||||||
compstmt '}'
|
compstmt '}'
|
||||||
{
|
{
|
||||||
lex_strterm = $<node>2;
|
lex_strterm = $<node>2;
|
||||||
|
COND_LEXPOP();
|
||||||
|
CMDARG_LEXPOP();
|
||||||
$$ = new_evstr($3);
|
$$ = new_evstr($3);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user