+<digit> problem
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ed66b9e1d
commit
0c123a83f0
5
parse.y
5
parse.y
@ -2909,7 +2909,10 @@ yylex()
|
|||||||
(lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
|
(lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
|
||||||
pushback(c);
|
pushback(c);
|
||||||
if (lex_state == EXPR_ARG) arg_ambiguous();
|
if (lex_state == EXPR_ARG) arg_ambiguous();
|
||||||
if (ISDIGIT(c)) goto start_num;
|
if (ISDIGIT(c)) {
|
||||||
|
c = '+';
|
||||||
|
goto start_num;
|
||||||
|
}
|
||||||
lex_state = EXPR_BEG;
|
lex_state = EXPR_BEG;
|
||||||
return tUPLUS;
|
return tUPLUS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user