1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

+<digit> problem

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-02-26 01:16:48 +00:00
parent 7ed66b9e1d
commit 0c123a83f0

View file

@ -2909,7 +2909,10 @@ yylex()
(lex_state == EXPR_ARG && space_seen && !ISSPACE(c))) {
pushback(c);
if (lex_state == EXPR_ARG) arg_ambiguous();
if (ISDIGIT(c)) goto start_num;
if (ISDIGIT(c)) {
c = '+';
goto start_num;
}
lex_state = EXPR_BEG;
return tUPLUS;
}