Commit 4841754a authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Avoid using C++ style comments (`//`) in `parse.y` [ci skip]

parent 2166cc2e
...@@ -793,15 +793,15 @@ new_args_tail(parser_state *p, node *kws, node *kwrest, mrb_sym blk) ...@@ -793,15 +793,15 @@ new_args_tail(parser_state *p, node *kws, node *kwrest, mrb_sym blk)
local_add_blk(p, blk); local_add_blk(p, blk);
// allocate register for keywords arguments /* allocate register for keywords arguments */
// order is for Proc#parameters /* order is for Proc#parameters */
for (k = kws; k; k = k->cdr) { for (k = kws; k; k = k->cdr) {
if (!k->car->cdr->cdr->car) { // allocate required keywords if (!k->car->cdr->cdr->car) { /* allocate required keywords */
local_add_f(p, sym(k->car->cdr->car)); local_add_f(p, sym(k->car->cdr->car));
} }
} }
for (k = kws; k; k = k->cdr) { for (k = kws; k; k = k->cdr) {
if (k->car->cdr->cdr->car) { // allocate keywords with default if (k->car->cdr->cdr->car) { /* allocate keywords with default */
local_add_lv(p, k->car->cdr->cdr->car->cdr); local_add_lv(p, k->car->cdr->cdr->car->cdr);
k->car->cdr->cdr->car = k->car->cdr->cdr->car->car; k->car->cdr->cdr->car = k->car->cdr->cdr->car->car;
local_add_f(p, sym(k->car->cdr->car)); local_add_f(p, sym(k->car->cdr->car));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment