Skip to content

Commit 850ba88

Browse files
author
hauntsaninja
committed
grammar: reuse del_target_end in invalid_del_target
1 parent d101ac1 commit 850ba88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Grammar/python.gram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,5 +654,5 @@ invalid_double_type_comments:
654654
| TYPE_COMMENT NEWLINE TYPE_COMMENT NEWLINE INDENT {
655655
RAISE_SYNTAX_ERROR("Cannot have two type comments on def") }
656656
invalid_del_target:
657-
| a=star_expression &(')' | ']' | ',' | ';' | NEWLINE) {
657+
| a=star_expression &del_target_end {
658658
RAISE_SYNTAX_ERROR("cannot delete %s", _PyPegen_get_expr_name(a)) }

0 commit comments

Comments
 (0)