mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: set ID to yylval ID instead of token
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da4067bab8
commit
3644cddb19
1 changed files with 3 additions and 3 deletions
6
parse.y
6
parse.y
|
@ -8172,7 +8172,7 @@ parser_yylex(struct parser_params *parser)
|
|||
case '*':
|
||||
if ((c = nextc()) == '*') {
|
||||
if ((c = nextc()) == '=') {
|
||||
set_yylval_id(tPOW);
|
||||
set_yylval_id(idPow);
|
||||
SET_LEX_STATE(EXPR_BEG);
|
||||
return tOP_ASGN;
|
||||
}
|
||||
|
@ -8304,7 +8304,7 @@ parser_yylex(struct parser_params *parser)
|
|||
}
|
||||
if (c == '<') {
|
||||
if ((c = nextc()) == '=') {
|
||||
set_yylval_id(tLSHFT);
|
||||
set_yylval_id(idLTLT);
|
||||
SET_LEX_STATE(EXPR_BEG);
|
||||
return tOP_ASGN;
|
||||
}
|
||||
|
@ -8321,7 +8321,7 @@ parser_yylex(struct parser_params *parser)
|
|||
}
|
||||
if (c == '>') {
|
||||
if ((c = nextc()) == '=') {
|
||||
set_yylval_id(tRSHFT);
|
||||
set_yylval_id(idGTGT);
|
||||
SET_LEX_STATE(EXPR_BEG);
|
||||
return tOP_ASGN;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue