diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-11 12:47:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-11 12:47:02 +0000 |
commit | bda6df356a373289e179f2b09c0bbe84ffc70d03 (patch) | |
tree | 0a649904da6b8fc2f463f4b2f36dde5be8d53fb6 /parse.y | |
parent | bc76d8a232bed2e245cd3997ebd9826938f7a738 (diff) |
parse.y: moved excessed_comma
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -315,6 +315,10 @@ static int parser_yyerror(struct parser_params*, const YYLTYPE *yylloc, const ch #define lambda_beginning_p() (p->lex.lpar_beg == p->lex.paren_nest) +#ifndef RIPPER +static const ID excessed_comma = 1; +#endif + static enum yytokentype yylex(YYSTYPE*, YYLTYPE*, struct parser_params*); #ifndef RIPPER @@ -3050,7 +3054,6 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail { /*%%%*/ /* magic number for rest_id in iseq_set_arguments() */ - const ID excessed_comma = 1; $$ = new_args(p, $1, Qnone, excessed_comma, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, &@1), &@$); /*% %*/ /*% ripper: new_args(p, $1, Qnone, excessed_comma!, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, NULL), NULL) %*/ |