diff --git a/src/prism.c b/src/prism.c index 69d39f6c1e..db4182d32b 100644 --- a/src/prism.c +++ b/src/prism.c @@ -14175,7 +14175,7 @@ parse_arguments(pm_parser_t *parser, pm_arguments_t *arguments, bool accepts_for arguments->block = argument; } - if (parser->current.type == PM_TOKEN_COMMA) { + if (match1(parser, PM_TOKEN_COMMA)) { pm_parser_err_current(parser, PM_ERR_ARGUMENT_AFTER_BLOCK); }