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:
parent
7ed66b9e1d
commit
0c123a83f0
1 changed files with 4 additions and 1 deletions
5
parse.y
5
parse.y
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue