* parse.y: needless conditionals.
* parse.y (parse_regx): parse error at unterminated regex /#{. (ruby-bugs-ja:PR#142) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
050a1687d2
commit
5ca24aa3e8
@ -1,3 +1,10 @@
|
||||
Sun Nov 18 19:37:55 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* parse.y: needless conditionals.
|
||||
|
||||
* parse.y (parse_regx): parse error at unterminated regex /#{.
|
||||
(ruby-bugs-ja:PR#142)
|
||||
|
||||
Thu Nov 15 15:29:39 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* array.c (rb_ary_join): non-nil separator must be converted to
|
||||
|
10
parse.y
10
parse.y
@ -442,9 +442,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
|
||||
}
|
||||
else {
|
||||
$$ = n;
|
||||
if ($$) {
|
||||
$$->nd_value = call_op(gettable($1),$2,1,$3);
|
||||
}
|
||||
$$->nd_value = call_op(gettable($1),$2,1,$3);
|
||||
}
|
||||
fixpos($$, $3);
|
||||
}
|
||||
@ -789,9 +787,7 @@ arg : lhs '=' arg
|
||||
}
|
||||
else {
|
||||
$$ = n;
|
||||
if ($$) {
|
||||
$$->nd_value = call_op(gettable($1),$2,1,$3);
|
||||
}
|
||||
$$->nd_value = call_op(gettable($1),$2,1,$3);
|
||||
}
|
||||
fixpos($$, $3);
|
||||
}
|
||||
@ -2518,7 +2514,7 @@ parse_regx(term, paren)
|
||||
switch (c) {
|
||||
case '#':
|
||||
list = str_extend(list, term);
|
||||
if (list == (NODE*)-1) return 0;
|
||||
if (list == (NODE*)-1) goto unterminated;
|
||||
continue;
|
||||
|
||||
case '\\':
|
||||
|
Loading…
x
Reference in New Issue
Block a user