Skip to content

Commit 1bc8ec5

Browse files
committed
Fix wrong error message for lower percent i arrays
Not so sure how to trigger it but this is definitly more correct.
1 parent 2116770 commit 1bc8ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prism.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19343,7 +19343,7 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
1934319343
pm_array_node_elements_append(array, current);
1934419344
current = NULL;
1934519345
} else {
19346-
expect1(parser, PM_TOKEN_STRING_CONTENT, PM_ERR_LIST_W_LOWER_ELEMENT);
19346+
expect1(parser, PM_TOKEN_STRING_CONTENT, PM_ERR_LIST_I_LOWER_ELEMENT);
1934719347
}
1934819348
}
1934919349

0 commit comments

Comments
 (0)