Skip to content

Commit bc90494

Browse files
committed
Handle missing block parameters
1 parent 5af0eff commit bc90494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yarp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ yp_block_parameters_node_closing_set(yp_block_parameters_node_t *node, const yp_
10141014
// Append a new block-local variable to a BlockParametersNode node.
10151015
static void
10161016
yp_block_parameters_node_append_local(yp_block_parameters_node_t *node, const yp_token_t *local) {
1017-
assert(local->type == YP_TOKEN_IDENTIFIER);
1017+
assert(local->type == YP_TOKEN_IDENTIFIER || local->type == YP_TOKEN_MISSING);
10181018

10191019
yp_location_list_append(&node->locals, local);
10201020
if (node->base.location.start == NULL) node->base.location.start = local->start;

0 commit comments

Comments
 (0)