+<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))) { (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;
} }