No longer need to reduce line number by one.

This commit is contained in:
nicm 2019-05-30 10:04:33 +00:00 committed by Nicholas Marriott
parent 75d112c484
commit e4eec92852

View File

@ -361,7 +361,7 @@ command : assignment TOKEN
$$ = xcalloc(1, sizeof *$$); $$ = xcalloc(1, sizeof *$$);
$$->name = $2; $$->name = $2;
$$->line = ps->input->line - 1; $$->line = ps->input->line;
} }
| assignment TOKEN arguments | assignment TOKEN arguments
@ -370,7 +370,7 @@ command : assignment TOKEN
$$ = xcalloc(1, sizeof *$$); $$ = xcalloc(1, sizeof *$$);
$$->name = $2; $$->name = $2;
$$->line = ps->input->line - 1; $$->line = ps->input->line;
$$->argc = $3.argc; $$->argc = $3.argc;
$$->argv = $3.argv; $$->argv = $3.argv;