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

Fix typos

This commit is contained in:
Kazuhiro NISHIYAMA 2019-08-24 21:26:24 +09:00
parent 571ffcd609
commit 5d5502dc85
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

16
parse.y
View file

@ -168,7 +168,7 @@ struct local_vars {
}; };
enum { enum {
ORDINAL_PARM = -1, ORDINAL_PARAM = -1,
NO_PARAM = 0, NO_PARAM = 0,
NUMPARAM_MAX = 100, NUMPARAM_MAX = 100,
}; };
@ -3370,7 +3370,7 @@ opt_block_param : none
block_param_def : '|' opt_bv_decl '|' block_param_def : '|' opt_bv_decl '|'
{ {
p->cur_arg = 0; p->cur_arg = 0;
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
/*%%%*/ /*%%%*/
$$ = 0; $$ = 0;
/*% %*/ /*% %*/
@ -3378,7 +3378,7 @@ block_param_def : '|' opt_bv_decl '|'
} }
| tOROP | tOROP
{ {
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
/*%%%*/ /*%%%*/
$$ = 0; $$ = 0;
/*% %*/ /*% %*/
@ -3387,7 +3387,7 @@ block_param_def : '|' opt_bv_decl '|'
| '|' block_param opt_bv_decl '|' | '|' block_param opt_bv_decl '|'
{ {
p->cur_arg = 0; p->cur_arg = 0;
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
/*%%%*/ /*%%%*/
$$ = $2; $$ = $2;
/*% %*/ /*% %*/
@ -3465,7 +3465,7 @@ f_larglist : '(' f_args opt_bv_decl ')'
{ {
/*%%%*/ /*%%%*/
$$ = $2; $$ = $2;
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
/*% %*/ /*% %*/
/*% ripper: paren!($2) %*/ /*% ripper: paren!($2) %*/
} }
@ -3473,7 +3473,7 @@ f_larglist : '(' f_args opt_bv_decl ')'
{ {
/*%%%*/ /*%%%*/
if (!args_info_empty_p($1->nd_ainfo)) if (!args_info_empty_p($1->nd_ainfo))
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
/*% %*/ /*% %*/
$$ = $1; $$ = $1;
} }
@ -4862,7 +4862,7 @@ f_norm_arg : f_bad_arg
| tIDENTIFIER | tIDENTIFIER
{ {
formal_argument(p, get_id($1)); formal_argument(p, get_id($1));
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
$$ = $1; $$ = $1;
} }
; ;
@ -4925,7 +4925,7 @@ f_label : tLABEL
ID id = get_id($1); ID id = get_id($1);
arg_var(p, formal_argument(p, id)); arg_var(p, formal_argument(p, id));
p->cur_arg = id; p->cur_arg = id;
p->max_numparam = ORDINAL_PARM; p->max_numparam = ORDINAL_PARAM;
$$ = $1; $$ = $1;
} }
; ;