зеркало из https://github.com/github/ruby.git
* parse.y (string_content): cond_stack and cmdarg_stack are VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
abdb337323
Коммит
9f8b036123
|
@ -1,3 +1,7 @@
|
|||
Sun Apr 18 22:13:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (string_content): cond_stack and cmdarg_stack are VALUE.
|
||||
|
||||
Sun Apr 18 18:07:47 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::IPv4::Regex): make it only accept 0 to 255.
|
||||
|
|
8
parse.y
8
parse.y
|
@ -4030,8 +4030,8 @@ string_content : tSTRING_CONTENT
|
|||
}
|
||||
| tSTRING_DBEG
|
||||
{
|
||||
$<num>1 = cond_stack;
|
||||
$<num>$ = cmdarg_stack;
|
||||
$<val>1 = cond_stack;
|
||||
$<val>$ = cmdarg_stack;
|
||||
cond_stack = 0;
|
||||
cmdarg_stack = 0;
|
||||
}
|
||||
|
@ -4042,8 +4042,8 @@ string_content : tSTRING_CONTENT
|
|||
}
|
||||
compstmt '}'
|
||||
{
|
||||
cond_stack = $<num>1;
|
||||
cmdarg_stack = $<num>2;
|
||||
cond_stack = $<val>1;
|
||||
cmdarg_stack = $<val>2;
|
||||
lex_strterm = $<node>3;
|
||||
/*%%%*/
|
||||
if ($4) $4->flags &= ~NODE_FL_NEWLINE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче